Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying OpenCL application?

Tags:

c++

opencl

I am currently learning OpencL and am finding it somewhat difficult to understand how it actually works. I am using MinGW compiler with ATI APP SDK. When I run the target I get error message

enter image description here

I have not placed any OpenCL.dll in the same folder as my application. Now searching a bit on Windows I can find this dll in

C:/Windows/SysWOW64
C:/Windows/System32/DriverStore/...
C:/Windows/System32
C:/Program Files(x86)/AMD APP SDK /...

So my question is how should I deploy my application? Should I distribute OpenCL.dll with my application?

like image 435
Cool_Coder Avatar asked Dec 15 '22 01:12

Cool_Coder


1 Answers

The reason why your application can't find clReleaseDevice is because you wrote your application to the OpenCL 1.2 headers but you only have a OpenCL 1.1 runtime on your machine. You can't call OpenCL 1.2 API on an OpenCL 1.1 runtime. I recommend using the OpenCL 1.1 headers unless you only run on OpenCL 1.2 devices. It will keep your code safe for running on OpenCL 1.1 platforms and devices.

like image 137
Dithermaster Avatar answered Jan 01 '23 11:01

Dithermaster