I have installed cuda 9.1 with the driver 390.77
nvidia-smi gives
stefano@tesla:~$ nvidia-smi
Thu Aug 23 17:40:26 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 390.77 Driver Version: 390.77 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Tesla C2075 Off | 00000000:02:00.0 Off | 0 |
| 30% 57C P0 77W / N/A | 0MiB / 5301MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 1 Tesla C2075 Off | 00000000:03:00.0 Off | 0 |
| 30% 52C P0 78W / N/A | 0MiB / 5301MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 2 Tesla C2075 Off | 00000000:83:00.0 Off | 0 |
| 30% 59C P0 80W / N/A | 0MiB / 5301MiB | 0% Default |
±------------------------------±---------------------±---------------------+
| 3 Tesla C2075 Off | 00000000:84:00.0 Off | 0 |
| 30% 59C P0 78W / N/A | 0MiB / 5301MiB | 0% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
±----------------------------------------------------------------------------+
But if I try to compile the file prova.cu with the command nvcc I get
stefano@tesla:~$ nvcc prova.cu
/usr/bin/x86_64-linux-gnu-ld: /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so: error loading plugin: /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so: classe ELF errata: ELFCLASS64
collect2: error: ld returned 1 exit status
Moreover the command
nvcc -ccbin=clang-3.8 prova.cu
does’nt give errors
but the
cudaRuntimeGetVersion(&runtimeVersion); inside the file “prova.cu”
gives the code error 35 while
cudaDriverGetVersion(&driverVersion); returns a success.
Thank you
Stefano