From: Karl R. <ru...@iu...> - 2017-08-11 17:15:25
|
Hi Charles, > I have another curious situation. I have installed pocl 0.14 on a > ubuntu 14.04 system. I can install and run clinfo without any > problems. However, when I compile and run my context.cpp file > (https://github.com/cdeterman/gpuR/blob/develop/src/context.cpp) and try > to run the initContexts function I keep getting a -1001 error for the > get_platforms call. > > Any idea why this script would be failing to find the platforms whereas > even a basic query file like this > (https://github.com/cdeterman/pocl_test/blob/master/clDeviceQuery.cpp) > can be compiled simply with > > g++ -o clDeviceQuery clDeviceQuery.cpp -lOpenCL > > and run without a problem. whenever I've seen problems with querying platform information it was due to a problem with the OpenCL environment: Either the GPU driver was not correctly installed (unlikely in your case) or the wrong libOpenCL.so was picked up (more likely here). Can you verify with ldd that the correct libOpenCL.so is picked up? clDeviceQuery and gpuR should pick up the same libOpenCL.so. Best regards, Karli |