I'm developing on Centos 7.6 64bit and Nvidia graphic card. I've installed Nvidia driver and cuda driver.
But, when I run "clinfo", it shows:
Number of platforms 0
What should I check and how can I solve it?
The cuda's nvidia driver and your display nvidia-driver should match. I faced this problem yesterday and solved it but installing nvidia-driver suggested in cuda run file.
make sure that /var/lib/dkms/nvidia/<version> links properly with kernels.
see my topic for more info.
Sample deviceQuery cuda program
dpkg --get-selections | grep nvidia and updated all the packages that were listed.
cat /etc/OpenCL/vendors/*to find out all enabled platforms./etc/OpenCL/vendors/,nvidia.icdexists. And the result ofcat /etc/OpenCL/vendors/nvidia.icdislibnvidia-opencl.so.1./usr/lib64and/usr/lib,/usr/lib/libnvidia-opencl.so.1are linked tolibnvidia-opencl.so.410.93.