summaryrefslogtreecommitdiffstats
path: root/sc/workben
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-09-12 18:03:34 -0400
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-19 17:03:17 +0200
commit5e743fd52db25e9144949f3a84865b91880098c2 (patch)
tree817cf53daa202c7dfb116f120a29d37d42938275 /sc/workben
parentAdd a quick test code to detect available OpenCL platforms. (diff)
downloadcore-5e743fd52db25e9144949f3a84865b91880098c2.tar.gz
core-5e743fd52db25e9144949f3a84865b91880098c2.zip
On linux, the entry library name is 'libOpenCL.so'.
And it should be installed in the system library path, so no need to specify full path to load it. Change-Id: I0a77bd6911e69f8453b7c95c7cdcb77fe2e6e5e0
Diffstat (limited to 'sc/workben')
-rwxr-xr-xsc/workben/opencl/platform_detect.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/workben/opencl/platform_detect.cxx b/sc/workben/opencl/platform_detect.cxx
index 81c19e6d06e6..b0a9c610d7e1 100755
--- a/sc/workben/opencl/platform_detect.cxx
+++ b/sc/workben/opencl/platform_detect.cxx
@@ -9,7 +9,8 @@ using namespace std;
int main()
{
- const char* dllname = "OpenCL.dll"; // from GPU driver.
+ const char* dllname = "libOpenCL.so"; // on Linux
+// const char* dllname = "OpenCL.dll"; // from GPU driver.
// const char* dllname = "amdocl.dll"; // from AMD SDK
// const char* dllname = "intelocl.dll"; // from Intel SDK
int status = clewInit(dllname);