I have Mathematica 12.3 installed on a linux machine (I am using arch-linux). My GPU is a Quadro P620. to work with CUDA I installed the following packages (using pacman as usual)
community cuda-tools 11.3.1-1
If I print the environment variables I get the following relevant PATH
To me it looks everything is well-settled. However, when I try to use CUDALink I get the following
During evaluation of In:= CUDAQ::nodriv: A valid CUDA driver was not found. Refer to CUDALink System Requirements for system requirements.
"MessageTemplate" -> "CUDALink is compatible with CUDA Toolkit \
"MessageParameters" -> Association["installedVersion" -> 11.3],
"CUDAToolkitVersionMajorDetected" -> "11",
"CUDAToolkitVersionMajorCompatible" -> "11",
"Data" -> Association[
"CUDAToolkitVersionMajorDetected" -> 11,
"CUDAToolkitVersionMajorRequired" -> 11,
"CUDALinkCompatibilityQ" -> True]]]
Out= "465.31.0"&[Wolfram Notebook]
I attach a notebook. Somebody can help me?
Frankly speaking, CUDA support is currently in very bad shape on all platforms. There is no, generally reliable, approach for Linux and Windows.
Thank you. I finally solved my problem (I post here the solution since it could be useful for somebody):
I discovered that I did not have any driver problem. My problem was just that in my laptop I have two GPUs: the integrated GPU and the Nvidia GPU. Given the two GPUs, Mathematica was not able to make use of the Nvidia GPU. As far as I understand, the problem should be fixed with some suitable packages (like bumblebee) but in my case I found a easier solution: I noticed that in my BIOS I can turn off completely the integrated GPU. Hence, whenever I want to use CUDA, I simply reboot the system turning off the integrated GPU.