You are not logged in.

#1 2021-03-18 08:35:54

siyuanpan
Member
Registered: 2021-03-18
Posts: 3

CUDA cannot work

cannot use cuda

sudo ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 3
-> initialization error
Result = FAIL

❯ nvidia-smi
Thu Mar 18 16:35:13 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.141                Driver Version: 390.141                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro M4000        Off  | 00000000:03:00.0  On |                  N/A |
| 59%   70C    P8    18W / 120W |    147MiB /  8123MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     25693      G   /usr/lib/Xorg                                119MiB |
|    0     25941      G   alacritty                                     14MiB |
|    0     27577      G   alacritty                                     10MiB |
+-----------------------------------------------------------------------------+

Last edited by siyuanpan (2021-03-18 08:36:57)

Offline

#2 2021-03-18 08:36:24

siyuanpan
Member
Registered: 2021-03-18
Posts: 3

Re: CUDA cannot work

siyuanpan wrote:

cannot use cuda

sudo ./deviceQuery
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 3
-> initialization error
Result = FAIL


❯ nvidia-smi
Thu Mar 18 16:35:13 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.141                Driver Version: 390.141                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro M4000        Off  | 00000000:03:00.0  On |                  N/A |
| 59%   70C    P8    18W / 120W |    147MiB /  8123MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     25693      G   /usr/lib/Xorg                                119MiB |
|    0     25941      G   alacritty                                     14MiB |
|    0     27577      G   alacritty                                     10MiB |
+-----------------------------------------------------------------------------+

Offline

#3 2021-03-18 08:48:01

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: CUDA cannot work

Why are you running deviceQuery with sudo?

Last edited by d_fajardo (2021-03-18 09:00:00)

Offline

#4 2021-03-18 09:01:20

siyuanpan
Member
Registered: 2021-03-18
Posts: 3

Re: CUDA cannot work

use ./deviceQuery get the same result

Offline

#5 2021-03-18 11:15:48

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: CUDA cannot work

use ./deviceQuery get the same result

That didn't really answer my last question.
Anyway did you get any message or other output when you compiled the file?

Offline

#6 2021-03-18 11:20:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: CUDA cannot work

Why are you using nvidia 390xx ? google searches suggest this is a maxwell card that should be supported by the latest driver and it's also potentially likely that newer cuda doesn't work with the old driver

Offline

Board footer

Powered by FluxBB