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
4d474d40
Commit
4d474d40
authored
Aug 29, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3171 from akarsakov:amd_fft_fix
parents
4c404cb4
d4e6812b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
9 deletions
+13
-9
opencl_clamdfft.hpp
...cv2/core/opencl/runtime/autogenerated/opencl_clamdfft.hpp
+2
-2
ocl.cpp
modules/core/src/ocl.cpp
+4
-0
opencl_clamdfft_impl.hpp
...src/opencl/runtime/autogenerated/opencl_clamdfft_impl.hpp
+6
-6
opencl_clamdfft_functions.list
...l/runtime/generator/filter/opencl_clamdfft_functions.list
+1
-1
No files found.
modules/core/include/opencv2/core/opencl/runtime/autogenerated/opencl_clamdfft.hpp
View file @
4d474d40
...
...
@@ -79,7 +79,7 @@
#undef clAmdFftGetTmpBufSize
#define clAmdFftGetTmpBufSize clAmdFftGetTmpBufSize_pfn
#undef clAmdFftGetVersion
//
#define clAmdFftGetVersion clAmdFftGetVersion_pfn
#define clAmdFftGetVersion clAmdFftGetVersion_pfn
#undef clAmdFftSetLayout
#define clAmdFftSetLayout clAmdFftSetLayout_pfn
#undef clAmdFftSetPlanBatchSize
...
...
@@ -126,7 +126,7 @@ extern CL_RUNTIME_EXPORT clAmdFftStatus (*clAmdFftEnqueueTransform)(clAmdFftPlan
//extern CL_RUNTIME_EXPORT clAmdFftStatus (*clAmdFftGetPlanTransposeResult)(const clAmdFftPlanHandle plHandle, clAmdFftResultTransposed* transposed);
//extern CL_RUNTIME_EXPORT clAmdFftStatus (*clAmdFftGetResultLocation)(const clAmdFftPlanHandle plHandle, clAmdFftResultLocation* placeness);
extern
CL_RUNTIME_EXPORT
clAmdFftStatus
(
*
clAmdFftGetTmpBufSize
)(
const
clAmdFftPlanHandle
plHandle
,
size_t
*
buffersize
);
//
extern CL_RUNTIME_EXPORT clAmdFftStatus (*clAmdFftGetVersion)(cl_uint* major, cl_uint* minor, cl_uint* patch);
extern
CL_RUNTIME_EXPORT
clAmdFftStatus
(
*
clAmdFftGetVersion
)(
cl_uint
*
major
,
cl_uint
*
minor
,
cl_uint
*
patch
);
extern
CL_RUNTIME_EXPORT
clAmdFftStatus
(
*
clAmdFftSetLayout
)(
clAmdFftPlanHandle
plHandle
,
clAmdFftLayout
iLayout
,
clAmdFftLayout
oLayout
);
extern
CL_RUNTIME_EXPORT
clAmdFftStatus
(
*
clAmdFftSetPlanBatchSize
)(
clAmdFftPlanHandle
plHandle
,
size_t
batchSize
);
//extern CL_RUNTIME_EXPORT clAmdFftStatus (*clAmdFftSetPlanDim)(clAmdFftPlanHandle plHandle, const clAmdFftDim dim);
...
...
modules/core/src/ocl.cpp
View file @
4d474d40
...
...
@@ -1581,7 +1581,11 @@ protected:
{
try
{
cl_uint
major
,
minor
,
patch
;
CV_Assert
(
clAmdFftInitSetupData
(
&
setupData
)
==
CLFFT_SUCCESS
);
// it throws exception in case AmdFft binaries are not found
CV_Assert
(
clAmdFftGetVersion
(
&
major
,
&
minor
,
&
patch
)
==
CLFFT_SUCCESS
);
g_isAmdFftAvailable
=
true
;
}
catch
(
const
Exception
&
)
...
...
modules/core/src/opencl/runtime/autogenerated/opencl_clamdfft_impl.hpp
View file @
4d474d40
...
...
@@ -21,7 +21,7 @@ enum OPENCLAMDFFT_FN_ID {
// OPENCLAMDFFT_FN_clAmdFftGetPlanTransposeResult = 15,
// OPENCLAMDFFT_FN_clAmdFftGetResultLocation = 16,
OPENCLAMDFFT_FN_clAmdFftGetTmpBufSize
=
17
,
//
OPENCLAMDFFT_FN_clAmdFftGetVersion = 18,
OPENCLAMDFFT_FN_clAmdFftGetVersion
=
18
,
OPENCLAMDFFT_FN_clAmdFftSetLayout
=
19
,
OPENCLAMDFFT_FN_clAmdFftSetPlanBatchSize
=
20
,
// OPENCLAMDFFT_FN_clAmdFftSetPlanDim = 21,
...
...
@@ -298,9 +298,9 @@ clAmdFftStatus (*clAmdFftGetTmpBufSize)(const clAmdFftPlanHandle, size_t*) =
openclamdfft_fn2
<
OPENCLAMDFFT_FN_clAmdFftGetTmpBufSize
,
clAmdFftStatus
,
const
clAmdFftPlanHandle
,
size_t
*>::
switch_fn
;
static
const
struct
DynamicFnEntry
clAmdFftGetTmpBufSize_definition
=
{
"clAmdFftGetTmpBufSize"
,
(
void
**
)
&
clAmdFftGetTmpBufSize
};
//
clAmdFftStatus (*clAmdFftGetVersion)(cl_uint*, cl_uint*, cl_uint*) =
//
openclamdfft_fn3<OPENCLAMDFFT_FN_clAmdFftGetVersion, clAmdFftStatus, cl_uint*, cl_uint*, cl_uint*>::switch_fn;
//
static const struct DynamicFnEntry clAmdFftGetVersion_definition = { "clAmdFftGetVersion", (void**)&clAmdFftGetVersion};
clAmdFftStatus
(
*
clAmdFftGetVersion
)(
cl_uint
*
,
cl_uint
*
,
cl_uint
*
)
=
openclamdfft_fn3
<
OPENCLAMDFFT_FN_clAmdFftGetVersion
,
clAmdFftStatus
,
cl_uint
*
,
cl_uint
*
,
cl_uint
*>::
switch_fn
;
static
const
struct
DynamicFnEntry
clAmdFftGetVersion_definition
=
{
"clAmdFftGetVersion"
,
(
void
**
)
&
clAmdFftGetVersion
};
clAmdFftStatus
(
*
clAmdFftSetLayout
)(
clAmdFftPlanHandle
,
clAmdFftLayout
,
clAmdFftLayout
)
=
openclamdfft_fn3
<
OPENCLAMDFFT_FN_clAmdFftSetLayout
,
clAmdFftStatus
,
clAmdFftPlanHandle
,
clAmdFftLayout
,
clAmdFftLayout
>::
switch_fn
;
...
...
@@ -375,7 +375,7 @@ static const struct DynamicFnEntry* openclamdfft_fn[] = {
NULL
/*&clAmdFftGetPlanTransposeResult_definition*/
,
NULL
/*&clAmdFftGetResultLocation_definition*/
,
&
clAmdFftGetTmpBufSize_definition
,
NULL
/*&clAmdFftGetVersion_definition*/
,
&
clAmdFftGetVersion_definition
,
&
clAmdFftSetLayout_definition
,
&
clAmdFftSetPlanBatchSize_definition
,
NULL
/*&clAmdFftSetPlanDim_definition*/
,
...
...
@@ -391,4 +391,4 @@ static const struct DynamicFnEntry* openclamdfft_fn[] = {
&
clAmdFftTeardown_definition
,
};
// number of enabled functions: 1
5
// number of enabled functions: 1
6
modules/core/src/opencl/runtime/generator/filter/opencl_clamdfft_functions.list
View file @
4d474d40
...
...
@@ -16,7 +16,7 @@ clAmdFftEnqueueTransform
//clAmdFftGetPlanTransposeResult
//clAmdFftGetResultLocation
clAmdFftGetTmpBufSize
//
clAmdFftGetVersion
clAmdFftGetVersion
clAmdFftSetLayout
clAmdFftSetPlanBatchSize
//clAmdFftSetPlanDim
...
...
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