Error when importing CUDAnative (or just about anything with CUDA)

Dear all,

When I try to import CUDAnative into Julia 1.6.3, I get the following error:

julia> import Pkg; Pkg.add("CUDAnative")
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package CUDAapi [3895d2a7]:
 CUDAapi [3895d2a7] log:
 ├─possible versions are: 0.5.0-4.0.0 or uninstalled
 ├─restricted by compatibility requirements with CUDAnative [be33ccc6] to versions: 0.5.0-4.0.0
 │ └─CUDAnative [be33ccc6] log:
 │   ├─possible versions are: 0.7.0-3.2.0 or uninstalled
 │   └─restricted to versions * by an explicit requirement, leaving only versions 0.7.0-3.2.0
 └─restricted by julia compatibility requirements to versions: uninstalled — no versions left

I work on an Asus Strix ROG laptop, with Nvidia GeForce RTX card. The laptop is running Ubuntu 20.04. I have installed CUDA 10.1 Toolkit prior to installing Julia, which I built from the sources on github. (I somehow believed that if I have CUDA during the Julia compilation, it (Julia) will be aware of CUDA, but I could be wrong, of course).

I believe that installation of CUDA 10.1 was successful (albeit a very frustrating task), since the command: nvidia-smi gives me the following output:

Fri Oct 22 10:18:19 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 495.29.05    Driver Version: 495.29.05    CUDA Version: 11.5     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0 Off |                  N/A |
| N/A   38C    P8     7W /  N/A |    303MiB /  7982MiB |      6%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A       922      G   /usr/lib/xorg/Xorg                 45MiB |
|    0   N/A  N/A      1482      G   /usr/lib/xorg/Xorg                152MiB |
|    0   N/A  N/A      1649      G   /usr/bin/gnome-shell               38MiB |
|    0   N/A  N/A     44634      G   ...AAAAAAAAA= --shared-files       55MiB |
+-----------------------------------------------------------------------------+

which should, to my limited experience, be an indication that CUDA is properly installed and that the OS is aware of CUDA libraries.

What could be going on here?

Cheers

CUDAnative.jl is deprecated, use CUDA.jl.

Wow thanks, worked like a charm :slight_smile: