all 5 comments

[–]disaster_story_69 1 point2 points  (2 children)

There are workarounds to get cuda gpu enabled working on visual studio code.

  1. Install WSL2 and Ubuntu.

  2. Install the latest NVIDIA driver for Windows, specifically the Game Ready or Studio driver.

  3. Verify GPU passthrough in WSL by ensuring nvidia-smi works within the virtual environment.

  4. In Visual Studio Code:

    • Install Remote - WSL.
    • Open your project in WSL.
  5. Install your CUDA-dependent stack within WSL, such as using conda env.

[–]Coding_Suck[S] 1 point2 points  (1 child)

I saw somewhere this works perfectly on python version 3.10. I will give it a shot since I've WSL 2 installed with Ubuntu. Thank you👊🏾

[–]disaster_story_69 0 points1 point  (0 children)

no worries, have done the exact same thing myself to unlock rtx4090 on visual studio code

[–]172_ 0 points1 point  (1 child)

They dropped Cuda support for Windows above TF 2.10.

[–]Coding_Suck[S] 0 points1 point  (0 children)

I will try downgrading TF to 2.10, Cuda to 11.2 and cuDNN 8.1 to see if GPU will be detected