# Total Segmenter cannot detect my GPU (1080ti x 2)

**URL:** <https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728>\
**Category:** Support\
**Created:** [December 14, 2022, 3:36pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728 "2022-12-14T15:36:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottcollins3d](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/scottcollins3d/32/17706_2.png) [@scottcollins3d](https://discourse.slicer.org/u/scottcollins3d)\
**Post date:** [December 14, 2022, 3:36pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728/1 "2022-12-14T15:36:03Z")

</div>

On my setup, the Total Segmenter extension is telling me that it cannot detect my GPU (1080ti x 2). Can you point me to where there may be settings to detect my graphics card?

Operating system: Windows 10  
Slicer version: 5.2.1  
Expected behavior: detect gpu  
Actual behavior: cannot detect gpu

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [December 14, 2022, 3:45pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728/2 "2022-12-14T15:45:25Z")

</div>

You need to install CUDA that is compatible with PyTorch, which is [currently on your platform](https://pytorch.org/get-started/locally/) is CUDA 11.6 or 11.7.

If you did not have CUDA installed or an incompatible version was installed when you first set up TotalSegmentator then the CPU version of pytorch was installed.

You need to force installation of the GPU version using the install command on the pytorch website, which is currently (use cu116/cu117 according to your installed CUDA version):

```plaintext
"%localappdata%\NA-MIC\Slicer 5.2.1\bin\PythonSlicer.exe" -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116 --force-reinstall

```

If this forced reinstallation does not work then maybe you can try to uninstall torch, torchvision, torchaudio then install again; but probably the easiest is to remove Slicer-5.2 and reinstall.

---

<div class="post-metadata">

**Author:** ![scottcollins3d](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/scottcollins3d/32/17706_2.png) [@scottcollins3d](https://discourse.slicer.org/u/scottcollins3d)\
**Post date:** [December 14, 2022, 4:21pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728/3 "2022-12-14T16:21:17Z")

</div>

Thank you. I installed cuda after installing v5.2.1 and the Total Segmenter extension. I believe I should have installed cuda first. GPU is being detected now.

---

<div class="post-metadata">

**Author:** ![Luca](https://avatars.discourse-cdn.com/v4/letter/l/51bf81/32.png) [@Luca](https://discourse.slicer.org/u/Luca)\
**Post date:** [June 5, 2023, 2:19pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728/4 "2023-06-05T14:19:19Z")

</div>

hello, can you please tell me how to run the code line that you posted, to solve problems in detecting GPU with total segmentator? thank you

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 5, 2023, 3:26pm UTC](https://discourse.slicer.org/t/total-segmenter-cannot-detect-my-gpu-1080ti-x-2/26728/5 "2023-06-05T15:26:11Z")

</div>

I’ve submitted a pull request to make it easier to select pytorch version in PyTorch Utils module. Hopefully it will be merged today or tomorrow. You can track its status here:

> <https://github.com/fepegar/SlicerPyTorch/pull/11>
>
> The main motivation for this is that on some computers when installing PyTorch w…ith default options, a very old version (1.8.1) is installed. The new API and GUI allows specifying a requirement (e.g., "\>=1.12" or "\>=2").
> 
> While this does not address the question of why old version is installed by default, it allows modules to automatically install correct pytorch version and allows users to manually specify a version, if effectively fixes #9

You need to use the lateset Slicer Stable Release or latest Slicer Preview Release to get the update (the update is available automatically in the Extensions Manager the day after the pull request is merged).
