Question

I have created my OpenCL code in a dll which I am loading in my application. Now for my 64 bit application it is crashing for the call getPlatformIds(). However Dependency Walker is showing everything is 64 bit and no errors. But the same application with 32 bit is working perfectly. Is it possible that my GPU cannot perform 64 bit tasks? But C:/Windows/System32/OpenCL.dll is also 64 bit so probably my hardware is ok?

How do I determine what might be causing the crash?

Was it helpful?

Solution

Husshhhh.... The issue is finally resolved...:)

Looks like there is some linker problem with the MinGW 64 bit compiler. The solution is to link the libopencl.a file instead of OpenCL.dll for building 64 bit applications.

While building for 32 bit applications does not require this i.e. you can link with OpenCL.dll.

Now only if somebody can fix this issue which has been open for past 4 years!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top