cudawsl-2

Safe to install CUDA toolkit separately on WSL2 and Windows 10?


I've installed Nvidia CUDA toolkit on WSL2 Ubuntu following the specified instructions from the Windows site. I was wondering if installing the Nvidia toolkit on Windows 10 directly as well would cause any conflicts or override anything potentially for the WSL2 install?

I'll be using the two separate toolkits for two separate purposes (WSL2 for linux libraries requiring the linux toolkit, Windows for things such as VS NSight requiring the Windows toolkikt)


Solution

  • No, it won't be a problem and this is what you would have to do to use CUDA on the pure-windows side as well as on the WSL2 side.

    Other expectations/requirements still apply. For example the CUDA toolkit versions installed in each location should be consistent with the GPU driver you have already installed.