# CUDA requirement for MONAILabel in 3D Slicer 5.0.3 stable version

**URL:** https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178
**Category:** Support
**Tags:** segmentation
**Created:** [November 10, 2022, 6:43am UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178 "2022-11-10T06:43:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)
#### Post date: [November 10, 2022, 6:43am UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178/1 "2022-11-10T06:43:03Z")

</div>

Dear 3D-Slicer members

Let me know version information by CUDA, CUDNN and tensorflow\_gpu that recommended in 3D-Slicer 5.0.3 stable version for modeling segmentation of monai label

System information of my laptop is as following.

[display]  
Operating System: Windows 10 Home, 64-bit  
DirectX Version: 12.0  
GPU Processor: NVIDIA GeForce RTX 3070 Laptop GPU  
Driver Version: 471.51  
Driver Type: DCH  
Direct3D feature level: 12\_1  
CUDA Core: 5120  
Resizable BAR Yes  
Max-Q technology 3rd generation  
Dynamic Boost 2.0 Yes  
WhisperMode 2.0 Yes  
Advanced Optimus No  
Maximum graphics performance 100 W  
Core clock: 1290 MHz  
Memory data rate: 12.00 Gbps  
Memory interface: 256-bit  
Memory bandwidth: 384.06 GB/s  
Total available graphics memory: 16079 MB  
Dedicated video memory: 8192 MB GDDR6  
System video memory: 0 MB  
Shared system memory: 7887 MB  
Video BIOS Version: 94.04.4F.00.19  
IRQ: Not used  
Bus: PCI Express x8 Gen3  
Device Id: 10DE 249D 20141A58  
Part number: 4735 0010

Please let me know version information by CUDA, CUDNN and tensorflow\_gpu that recommended in 3D-Slicer 5.0.3 stable version for modeling segmentation of monai label.

---

<div class="post-metadata">

### Author: ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)
#### Post date: [November 10, 2022, 12:22pm UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178/2 "2022-11-10T12:22:17Z")

</div>

You can check the CUDA version within Slicer 5.0.3 as follows:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/c/7c76d613072e4238f5a552022d4751fb0e69b965.png)

So on my laptop, the CUDA version is 11.3.

---

<div class="post-metadata">

### Author: ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)
#### Post date: [November 14, 2022, 9:44am UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178/3 "2022-11-14T09:44:29Z")

</div>

@rbumm Thank you for answering my question.

For working 3D-Slicer 5.0.3 stable version based on windows 11 64bit OS , I installed in (my laptop) pc as following.  
Python 3.9  
monailabel 0.5.2  
monai 1.0.1  
torch 1.1.3  
tensorflow-gpu 2.1.0  
CUDA 11.3  
CUDNN 8.6

And then using PyPi, I conducted command that is ‘python -c "import torch; print(torch.cuda.is\_available())’.  
The result shows ‘False’.

I think that it can’t conduct torch (with cuda) using gpu.

What should I do for showing ‘False’ into ‘True’ in result of ‘python -c "import torch; print(torch.cuda.is\_available())’?

Please, let me know solution of above problem.

---

<div class="post-metadata">

### Author: ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)
#### Post date: [November 14, 2022, 10:31am UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178/4 "2022-11-14T10:31:41Z")

</div>

Your laptop with an RTX 3070 GPU should definitely be ready to enable CUDA and use MONIALabel in GPU mode. We have set up a MONAILabel segmentation project during the last 3D Slicer Project week:

> **[NA-MIC Project Weeks](https://projectweek.na-mic.org/PW37_2022_Virtual/Projects/MONAILabelLung/)**
>
> Website for NA-MIC Project Weeks

On that page is a link [How To Setup MONAILabel in Windows 11](https://projectweek.na-mic.org/PW37_2022_Virtual/Projects/MONAILabelLung/MONAILabel_Installation.html) that should help you with installation. Please follow this step by step, we’ll assist if something does not work.

---

<div class="post-metadata">

### Author: ![platanus](https://avatars.discourse-cdn.com/v4/letter/p/ecb155/32.png) [@platanus](https://discourse.slicer.org/u/platanus)
#### Post date: [November 14, 2022, 10:40am UTC](https://discourse.slicer.org/t/cuda-requirement-for-monailabel-in-3d-slicer-5-0-3-stable-version/26178/5 "2022-11-14T10:40:21Z")

</div>

Dear @rbumm

I solved this problem

when I installed ‘python –m torch-1.7.1-cp39-cp39-win\_amd64.whl’, the result of ‘python -c "import torch; print(torch.cuda.is\_available())’ shows ‘True’.

Thank you for helping me.
