Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f7b0940d
Commit
f7b0940d
authored
Jan 09, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/ocl: runtime, remove unused declarations
parent
a75cfe13
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
43 deletions
+12
-43
opencl_clamdblas_impl.hpp
...rc/opencl/runtime/autogenerated/opencl_clamdblas_impl.hpp
+0
-5
opencl_clamdfft_impl.hpp
...src/opencl/runtime/autogenerated/opencl_clamdfft_impl.hpp
+0
-5
opencl_core_impl.hpp
...ore/src/opencl/runtime/autogenerated/opencl_core_impl.hpp
+0
-6
common.py
modules/core/src/opencl/runtime/generator/common.py
+0
-1
opencl_clamdblas_impl.hpp.in
...l/runtime/generator/template/opencl_clamdblas_impl.hpp.in
+0
-4
opencl_clamdfft_impl.hpp.in
...cl/runtime/generator/template/opencl_clamdfft_impl.hpp.in
+0
-4
opencl_core_impl.hpp.in
...opencl/runtime/generator/template/opencl_core_impl.hpp.in
+0
-5
opencl_clamdblas.cpp
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
+0
-3
opencl_clamdfft.cpp
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
+0
-3
opencl_core.cpp
modules/core/src/opencl/runtime/opencl_core.cpp
+12
-7
No files found.
modules/core/src/opencl/runtime/autogenerated/opencl_clamdblas_impl.hpp
View file @
f7b0940d
//
// AUTOGENERATED, DO NOT EDIT
//
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
// generated by parser_clamdblas.py
enum
OPENCLAMDBLAS_FN_ID
{
// OPENCLAMDBLAS_FN_clAmdBlasAddScratchImage = 0,
...
...
@@ -1251,7 +1247,6 @@ static const struct DynamicFnEntry* openclamdblas_fn[] = {
NULL
/*&clAmdBlasiDamax_definition*/
,
NULL
/*&clAmdBlasiSamax_definition*/
,
NULL
/*&clAmdBlasiZamax_definition*/
,
ADDITIONAL_FN_DEFINITIONS
// macro for custom functions
};
// number of enabled functions: 6
modules/core/src/opencl/runtime/autogenerated/opencl_clamdfft_impl.hpp
View file @
f7b0940d
//
// AUTOGENERATED, DO NOT EDIT
//
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
// generated by parser_clamdfft.py
enum
OPENCLAMDFFT_FN_ID
{
OPENCLAMDFFT_FN_clAmdFftBakePlan
=
0
,
...
...
@@ -393,7 +389,6 @@ static const struct DynamicFnEntry* openclamdfft_fn[] = {
&
clAmdFftSetResultLocation_definition
,
&
clAmdFftSetup_definition
,
&
clAmdFftTeardown_definition
,
ADDITIONAL_FN_DEFINITIONS
// macro for custom functions
};
// number of enabled functions: 15
modules/core/src/opencl/runtime/autogenerated/opencl_core_impl.hpp
View file @
f7b0940d
//
// AUTOGENERATED, DO NOT EDIT
//
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
// generated by parser_cl.py
enum
OPENCL_FN_ID
{
OPENCL_FN_clBuildProgram
=
0
,
...
...
@@ -666,7 +661,6 @@ static const struct DynamicFnEntry* opencl_fn_list[] = {
&
clUnloadCompiler_definition
,
&
clUnloadPlatformCompiler_definition
,
&
clWaitForEvents_definition
,
ADDITIONAL_FN_DEFINITIONS
// macro for custom functions
};
// number of enabled functions: 88
modules/core/src/opencl/runtime/generator/common.py
View file @
f7b0940d
...
...
@@ -161,7 +161,6 @@ def generateListOfDefinitions(fns, name='opencl_fn_list'):
else
:
print
' NULL/*&
%
s_definition*/,'
%
(
fn
[
'name'
])
first
=
False
print
' ADDITIONAL_FN_DEFINITIONS // macro for custom functions'
print
'};'
@outputToString
...
...
modules/core/src/opencl/runtime/generator/template/opencl_clamdblas_impl.hpp.in
View file @
f7b0940d
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
@CL_FN_ENUMS@
namespace {
...
...
modules/core/src/opencl/runtime/generator/template/opencl_clamdfft_impl.hpp.in
View file @
f7b0940d
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
@CL_FN_ENUMS@
namespace {
...
...
modules/core/src/opencl/runtime/generator/template/opencl_core_impl.hpp.in
View file @
f7b0940d
#ifndef ADDITIONAL_FN_DEFINITIONS
#define ADDITIONAL_FN_DEFINITIONS
#endif
@CL_FN_ENUMS@
namespace {
...
...
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
View file @
f7b0940d
...
...
@@ -100,8 +100,6 @@ static void* openclamdblas_check_fn(int ID);
#define CUSTOM_FUNCTION_ID 1000
#undef ADDITIONAL_FN_DEFINITIONS
//
// END OF CUSTOM FUNCTIONS HERE
//
...
...
@@ -110,7 +108,6 @@ static void* openclamdblas_check_fn(int ID);
static
void
*
openclamdblas_check_fn
(
int
ID
)
{
ID
=
(
ID
<=
CUSTOM_FUNCTION_ID
)
?
ID
:
ID
-
CUSTOM_FUNCTION_ID
;
assert
(
ID
>=
0
&&
ID
<
(
int
)(
sizeof
(
openclamdblas_fn
)
/
sizeof
(
openclamdblas_fn
[
0
])));
const
struct
DynamicFnEntry
*
e
=
openclamdblas_fn
[
ID
];
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
...
...
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
View file @
f7b0940d
...
...
@@ -100,8 +100,6 @@ static void* openclamdfft_check_fn(int ID);
#define CUSTOM_FUNCTION_ID 1000
#undef ADDITIONAL_FN_DEFINITIONS
//
// END OF CUSTOM FUNCTIONS HERE
//
...
...
@@ -110,7 +108,6 @@ static void* openclamdfft_check_fn(int ID);
static
void
*
openclamdfft_check_fn
(
int
ID
)
{
ID
=
(
ID
<=
CUSTOM_FUNCTION_ID
)
?
ID
:
ID
-
CUSTOM_FUNCTION_ID
;
assert
(
ID
>=
0
&&
ID
<
(
int
)(
sizeof
(
openclamdfft_fn
)
/
sizeof
(
openclamdfft_fn
[
0
])));
const
struct
DynamicFnEntry
*
e
=
openclamdfft_fn
[
ID
];
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
...
...
modules/core/src/opencl/runtime/opencl_core.cpp
View file @
f7b0940d
...
...
@@ -169,25 +169,30 @@ static void* opencl_check_fn(int ID);
#include "runtime_common.hpp"
#include "autogenerated/opencl_core_impl.hpp"
//
// BEGIN OF CUSTOM FUNCTIONS
//
#define CUSTOM_FUNCTION_ID 1000
#undef ADDITIONAL_FN_DEFINITIONS
//
// END OF CUSTOM FUNCTIONS HERE
//
#include "autogenerated/opencl_core_impl.hpp"
static
void
*
opencl_check_fn
(
int
ID
)
{
ID
=
(
ID
<=
CUSTOM_FUNCTION_ID
)
?
ID
:
ID
-
CUSTOM_FUNCTION_ID
;
assert
(
ID
>=
0
&&
ID
<
(
int
)(
sizeof
(
opencl_fn_list
)
/
sizeof
(
opencl_fn_list
[
0
])));
const
struct
DynamicFnEntry
*
e
=
opencl_fn_list
[
ID
];
const
struct
DynamicFnEntry
*
e
=
NULL
;
if
(
ID
<
CUSTOM_FUNCTION_ID
)
{
assert
(
ID
>=
0
&&
ID
<
(
int
)(
sizeof
(
opencl_fn_list
)
/
sizeof
(
opencl_fn_list
[
0
])));
e
=
opencl_fn_list
[
ID
];
}
else
{
CV_ErrorNoReturn
(
cv
::
Error
::
StsBadArg
,
"Invalid function ID"
);
}
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
if
(
!
func
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment