Closed takatoyamada closed 2 years ago
I found more information. There is no device detected by OpenCL runtime. I just run the following fragments embedded into a C++ source in RISE.
// get all platforms and print
clGetPlatformIDs(0, NULL, &platformCount);
printf("platformCount: %lu\n", platformCount);
> platformCount: 0
Hi, most likely your OpenCL installation is not working properly, does clinfo
show devices properly?
@Bastacyclop Thanks!
As you would suggest, the problem was OpenCL runtime cannot recognize the device. (I couldn't see any device by clinfo
)
Once I ran the following commands, it was solved.
apt-get install ocl-icd-opencl-dev ocl-icd-libopencl1
mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
I recently started to touch on this project. I tried to run
benchmarks.cgo17.mm
just for verifying my build was properly done, but the following error happened. it seems to say OpenCL runtime has some trouble or the executor was linked with buggy OpenCL lib during the build. Is there anyone who knows about it?