Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why GPU is not detected? #11

Closed
zhould1990 opened this issue Jul 8, 2020 · 5 comments
Closed

Why GPU is not detected? #11

zhould1990 opened this issue Jul 8, 2020 · 5 comments

Comments

@zhould1990
Copy link

Hello,

I used the following command to run a test case:

./run_fastsurfer.sh --t1 $datadir/P008/P008_T1_mri_orig.mgz
--sid P008 --sd $fastsurferdir

But no GPU is used when the program is running. I have several GPUs available, the recon-all.log file shows:
Cuda available: False, # Available GPUS: 0, Cuda user disabled (--no_cuda flag): False, --> Using device: cpu

Does anyone know why this happens?
Thanks.

@LeHenschel
Copy link
Member

Hey,

it looks like pytorch is not recognizing your GPUs. Can you post the output of nvidia-smi and the pytorch version you used? I suspect it has to do with the CUDA version or drivers etc.

In addition, you can test if the FastSurferCNN docker is working for you.

Best,
Leonie

@tashrifbillah
Copy link
Contributor

tashrifbillah commented Jul 13, 2020

Hi @LeHenschel , I am going to Google but I have a different GPU discovery error:

[root@pnl-z840-2 fs_test]# docker run --gpus all -v FastSurfer2:/root/FastSurfer2 -v pwd:/root/data --rm fastsurfer:gpu --seg /root/FastSurfer/aparc+aseg.mgz --sid 003 --parallel --t1 /root/data/003_T1w_resampled.nii.gz
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

Checking with you in case you know a potential solution.

@LeHenschel
Copy link
Member

Hey @tashrifbillah,

looks like the nvidia-toolkit might be missing (see: NVIDIA/nvidia-docker#1034).

Best,
Leonie

@tashrifbillah
Copy link
Contributor

Right! People can navigate from that issue or just do--

https://nvidia.github.io/nvidia-container-runtime/
and then
NVIDIA/nvidia-docker#1034 (comment)

@LeHenschel
Copy link
Member

Ok, thanks for the pointers. I am closing this issue for now then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants