CUDA nvcc compiler setup Ubuntu 12.04

后端 未结 3 958
再見小時候
再見小時候 2021-01-13 05:10

I successfully installed the nvidia driver and toolkit for cuda 5 (but not the samples) on a 64 bit Ubuntu 12.04 box. The samples failed to install even though I previously

3条回答
  •  -上瘾入骨i
    2021-01-13 05:40

    Failing to install samples is a common problem as outlines in https://sn0v.wordpress.com/2012/12/07/installing-cuda-5-on-ubuntu-12-04/#comment-869

    The solution is to find "libglut.so" and create a soft-link to it under /usr/lib. Then re-run the cuda*.run and choose to install only the samples.

    sudo find /usr -name libglut\*
    
    sudo ln -s /usr/lib/x86_64-linux-gnu/libglut.so.3 /usr/lib/libglut.so
    
    sudo ./cuda*.run #when prompted only install samples. ie do not install drivers and toolkit.
    

    works for me on ubuntu 12.04 hope it works for you too

提交回复
热议问题