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
915fb632
Commit
915fb632
authored
Feb 14, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/ocl: change error processing for missed function
parent
3542da71
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
opencl_clamdblas.cpp
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
+3
-1
opencl_clamdfft.cpp
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
+3
-1
opencl_core.cpp
modules/core/src/opencl/runtime/opencl_core.cpp
+3
-1
No files found.
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
View file @
915fb632
...
...
@@ -118,7 +118,9 @@ static void* openclamdblas_check_fn(int ID)
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
if
(
!
func
)
{
CV_Error
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL AMD BLAS function is not available: [%s]"
,
e
->
fnName
));
throw
cv
::
Exception
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL AMD BLAS function is not available: [%s]"
,
e
->
fnName
),
CV_Func
,
__FILE__
,
__LINE__
);
}
*
(
e
->
ppFn
)
=
func
;
return
func
;
...
...
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
View file @
915fb632
...
...
@@ -118,7 +118,9 @@ static void* openclamdfft_check_fn(int ID)
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
if
(
!
func
)
{
CV_Error
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL AMD FFT function is not available: [%s]"
,
e
->
fnName
));
throw
cv
::
Exception
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL AMD FFT function is not available: [%s]"
,
e
->
fnName
),
CV_Func
,
__FILE__
,
__LINE__
);
}
*
(
e
->
ppFn
)
=
func
;
return
func
;
...
...
modules/core/src/opencl/runtime/opencl_core.cpp
View file @
915fb632
...
...
@@ -201,7 +201,9 @@ static void* opencl_check_fn(int ID)
void
*
func
=
CV_CL_GET_PROC_ADDRESS
(
e
->
fnName
);
if
(
!
func
)
{
CV_Error
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL function is not available: [%s]"
,
e
->
fnName
));
throw
cv
::
Exception
(
cv
::
Error
::
OpenCLApiCallError
,
cv
::
format
(
"OpenCL function is not available: [%s]"
,
e
->
fnName
),
CV_Func
,
__FILE__
,
__LINE__
);
}
*
(
e
->
ppFn
)
=
func
;
return
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