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
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With