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
d9b24457
Commit
d9b24457
authored
Jan 27, 2014
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Jan 27, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2208 from alalek:ocl_dynload_warn
parents
ce48b6af
1ff9a8ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
opencl_clamdblas.cpp
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
+5
-0
opencl_clamdfft.cpp
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
+5
-0
opencl_core.cpp
modules/core/src/opencl/runtime/opencl_core.cpp
+9
-4
No files found.
modules/core/src/opencl/runtime/opencl_clamdblas.cpp
View file @
d9b24457
...
...
@@ -87,6 +87,11 @@
#endif
#ifndef CV_CL_GET_PROC_ADDRESS
#ifdef __GNUC__
#warning("OPENCV: OpenCL BLAS dynamic library loader: check configuration")
#else
#pragma message("WARNING: OPENCV: OpenCL BLAS dynamic library loader: check configuration")
#endif
#define CV_CL_GET_PROC_ADDRESS(name) NULL
#endif
...
...
modules/core/src/opencl/runtime/opencl_clamdfft.cpp
View file @
d9b24457
...
...
@@ -87,6 +87,11 @@
#endif
#ifndef CV_CL_GET_PROC_ADDRESS
#ifdef __GNUC__
#warning("OPENCV: OpenCL FFT dynamic library loader: check configuration")
#else
#pragma message("WARNING: OPENCV: OpenCL FFT dynamic library loader: check configuration")
#endif
#define CV_CL_GET_PROC_ADDRESS(name) NULL
#endif
...
...
modules/core/src/opencl/runtime/opencl_core.cpp
View file @
d9b24457
...
...
@@ -47,7 +47,7 @@
#include "opencv2/core/opencl/runtime/opencl_core.hpp"
static
const
char
*
funcToCheckOpenCL1_1
=
"clEnqueueReadBufferRect"
;
#define OPENCL_FUNC_TO_CHECK_1_1 "clEnqueueReadBufferRect"
#define ERROR_MSG_CANT_LOAD "Failed to load OpenCL runtime\n"
#define ERROR_MSG_INVALID_VERSION "Failed to load OpenCL runtime (expected version 1.1+)\n"
...
...
@@ -72,7 +72,7 @@ static void* AppleCLGetProcAddress(const char* name)
{
fprintf
(
stderr
,
ERROR_MSG_CANT_LOAD
);
}
else
if
(
dlsym
(
handle
,
funcToCheckOpenCL
1_1
)
==
NULL
)
else
if
(
dlsym
(
handle
,
OPENCL_FUNC_TO_CHECK_
1_1
)
==
NULL
)
{
fprintf
(
stderr
,
ERROR_MSG_INVALID_VERSION
);
handle
=
NULL
;
...
...
@@ -110,7 +110,7 @@ static void* WinGetProcAddress(const char* name)
{
fprintf
(
stderr
,
ERROR_MSG_CANT_LOAD
);
}
else
if
(
GetProcAddress
(
handle
,
funcToCheckOpenCL
1_1
)
==
NULL
)
else
if
(
GetProcAddress
(
handle
,
OPENCL_FUNC_TO_CHECK_
1_1
)
==
NULL
)
{
fprintf
(
stderr
,
ERROR_MSG_INVALID_VERSION
);
handle
=
NULL
;
...
...
@@ -147,7 +147,7 @@ static void* GetProcAddress(const char* name)
{
fprintf
(
stderr
,
ERROR_MSG_CANT_LOAD
);
}
else
if
(
dlsym
(
handle
,
funcToCheckOpenCL
1_1
)
==
NULL
)
else
if
(
dlsym
(
handle
,
OPENCL_FUNC_TO_CHECK_
1_1
)
==
NULL
)
{
fprintf
(
stderr
,
ERROR_MSG_INVALID_VERSION
);
handle
=
NULL
;
...
...
@@ -162,6 +162,11 @@ static void* GetProcAddress(const char* name)
#endif
#ifndef CV_CL_GET_PROC_ADDRESS
#ifdef __GNUC__
#warning("OPENCV: OpenCL dynamic library loader: check configuration")
#else
#pragma message("WARNING: OPENCV: OpenCL dynamic library loader: check configuration")
#endif
#define CV_CL_GET_PROC_ADDRESS(name) NULL
#endif
...
...
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