NVIDIA OpenCL on Trusty or Mint 17

It is very difficult for me to get OpenCL to work in Trusty or Mint 17. I use ppa: xorg-edgers, verified updates, and even nvidia-340.

sudo apt-get install nvidia-331 nvidia-331-uvm nvidia-cuda-toolkit nvidia-cuda-dev opencl-headers nvidia-opencl-dev clinfo

Reboot and then

babak@ASUS-G750JH:~$ clinfo
clinfo: /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: no version information available (required by clinfo)
I: ICD loader reports no usable platforms

I tried this on two Intel-based systems with an Nvidia GPU on a desktop computer with a GeForce 280 and a laptop with a GeForce 780M with Asus physically disabled, it only has an Nvidia GPU. G750JH.

Has anyone done this successfully? Can I roll back and remove the PPA and use the default repo, can this even change?

+4
source share
2 answers

xorg-edgers nvidia-346 , nvidia-opencl-icd-346 ocl-icd-libopencl1.

+2

, 100%, , , ppa: xorg-edgers. , , Cuda OpenCL Nvidia Ubuntu 14.04 x64

sudo apt-get install dkms linux-headers-generic fakeroot build-essential
sudo apt-get remove --purge nvidia-*
sudo apt-get purge nvidia*
sudo ./NVIDIA-Linux-x86_64-346.47.run

Nvidia, 340.xx

sudo reboot chmod +x cuda-repo-ubuntu1404_6.5-14_amd64.deb 
dpkg -i cuda-repo-ubuntu1404_6.5-14_amd64.deb
chmod +x cuda_6.5.14_linux_64.run  sudo ./cuda_6.5.14_linux_64.run

,

sudo apt-get update
sudo apt-get install cuda

bashrc

export CUDA_HOME=/usr/local/cuda-6.5 
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 
export GLPATH=/usr/lib/
PATH=${CUDA_HOME}/bin:${PATH} 
export PATH

sudo reboot

./ocore_601_OpenCL_v20 --devices

http://stanford.edu/~yutongz/ocores/

:

OpenCL compatible devices: 
name: GeForce GTX 780M | platformId: 0 deviceId: 0

cd ~/NVIDIA_CUDA-6.5_Samples/1_Utilities/deviceQuery
make
./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX 780M"
......
Truncated 
0

All Articles