I am successfully able to install CUDA driver and toolkit and able to compile sample.
When I ran vectorAdd got below error :
Error :Failed to launch vectorAdd kernel (error code no kernel image is available for execution on the
device)!
Let me know if anyone knows about this.
Through : [SOLVED] Samples not run CUDA 9 - Nvidia 640M LE - CUDA Setup and Installation - NVIDIA Developer Forums I realized that latest driver is not supported on my graphics card and need to install older version.
I tried installing cuda_8.0.44_linux.run but faced issues in installation itself.
Error:
The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.
If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the ‘–kernel-source-path’ flag.
I have installed the kernal header and source as well.
PFA attached error file where it says error is : error: too many arguments to function ‘get_user_pages’
Do let me know if anything I have missed or done wrong.
My GPU configuration is : nvidia-smi
Wed Jan 10 16:11:55 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111 Driver Version: 384.111 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 610 Off | 00000000:01:00.0 N/A | N/A |
| N/A 46C P0 N/A / N/A | 632MiB / 1985MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GT 610 Off | 00000000:02:00.0 N/A | N/A |
| N/A 42C P8 N/A / N/A | 65MiB / 1985MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
| 1 Not Supported |
+-----------------------------------------------------------------------------+
looks like you have the driver installed now (384.111) CUDA 8 should work with that driver.