Geant4 WSL & CUDA

_Geant4 Version:_11.2.2
_Operating System:_Windows 11 Pro 23H2
_Compiler/Version:_11.4
_CMake Version:_3.22.1

Hi does anyone have experience of running geant4 in WSL2 with CUDA support? Currently geant4 does not appear to be using my NVIDIA GPU, and only utilises the integrated graphics. Is there a way to reroute geant4 to the correct GPU? I realise CUDA says they do not support openGL currently which could be the problem.

thanks,

Ed

Geant4 relies on the graphics libraries it uses (so Qt, X11, etc) and the underlying system to be set up correctly. You could try running nvidia-smi to see what’s set up that should report if the driver etc are installed o.k.

nvidia-smi identifies the gpu successfully but the load does not increase from 0% regardless of what I run. If I run task manager on windows side I can also see the integrated graphics card load increasing suggesting that the GPU is not running any geant4 tasks on the WSL side.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.