# Problems with CUDA installation for GForce GTX 1650 Ti within WSL2-Ubuntu

**URL:** <https://forums.developer.nvidia.com/t/problems-with-cuda-installation-for-gforce-gtx-1650-ti-within-wsl2-ubuntu/186749>\
**Category:** CUDA Setup and Installation\
**Tags:** wsl, linux, cuda\
**Created:** [August 17, 2021, 4:22am UTC](https://forums.developer.nvidia.com/t/problems-with-cuda-installation-for-gforce-gtx-1650-ti-within-wsl2-ubuntu/186749 "2021-08-17T04:22:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilya.orson](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ilya.orson/32/117469_2.png) [@ilya.orson](https://forums.developer.nvidia.com/u/ilya.orson)\
**Post date:** [August 17, 2021, 4:22am UTC](https://forums.developer.nvidia.com/t/problems-with-cuda-installation-for-gforce-gtx-1650-ti-within-wsl2-ubuntu/186749/1 "2021-08-17T04:22:22Z")

</div>

I followed the guide to setup CUDA in WSL2 until the particular recomendations for WSL-Ubuntu:

> **[CUDA Toolkit 12.1 Downloads](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=runfile_local)**
>
> Get the latest feature updates to NVIDIA's proprietary compute stack.

```auto
wget https://developer.download.nvidia.com/compute/cuda/11.4.1/local_installers/cuda_11.4.1_470.57.02_linux.run
sudo sh cuda_11.4.1_470.57.02_linux.run

```

This does not complete the installation and I get the following in the nvidia-installer.log:

```auto
...
WARNING: You do not appear to have an NVIDIA GPU supported by the 470.57.02 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com.
-> Installing NVIDIA driver version 470.57.02.
...
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.

```

Apparently my GPU is not supported by the CUDA driver suggested by the guide or the CUDA Toolkit 11.4 Update 1 for Ubuntu; both point to the 470.57.02 driver currently (deb installers failled with different error when trying to run the first example in the CUDA in WSL guide).

BUT if I check that version in the display driver webpage, my GTX 1650 Ti appears as supported:

> **[Linux x64 (AMD64/EM64T) Display Driver | 470.57.02 | Linux 64-bit | NVIDIA](https://www.nvidia.com/Download/driverResults.aspx/177145/en-us/)**
>
> Download the English (US) Linux x64 (AMD64/EM64T) Display Driver for Linux 64-bit systems. Released 2021.7.19

I am not sure if the cuda and the display drivers are supposed to be the same, but I am guessing they might do different things. I do not understand the problem though.

I tried to download directly the latest display driver, 470.63.01, which also lists the GTX 1650 Ti as supported, but it does not run (maybe due to WSL2?):

```auto
https://www.nvidia.com/Download/driverResults.aspx/179599/en-us

```

Could someone provide some help please?

P.D. My GPU works fine with CUDA in Windows, but I need WSL because I intend to use it with a python library (JAX) that only supports Linux.

> **Here is some WSL info:**
>
> ```auto
> $ wsl cat /proc/version
> Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
> 
> ```

---

<div class="post-metadata">

**Author:** ![ilya.orson](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/ilya.orson/32/117469_2.png) [@ilya.orson](https://forums.developer.nvidia.com/u/ilya.orson)\
**Post date:** [August 18, 2021, 3:42pm UTC](https://forums.developer.nvidia.com/t/problems-with-cuda-installation-for-gforce-gtx-1650-ti-within-wsl2-ubuntu/186749/2 "2021-08-18T15:42:31Z")

</div>

Everything worked after following [this post](https://forums.developer.nvidia.com/t/failure-to-install-cuda-on-wsl-2-ubuntu/128592/8). When running the `.run` installer uncheck the Driver option.

The display driver is the one installed in Windows, avoid installing one from the WSL side.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 4:04pm UTC](https://forums.developer.nvidia.com/t/problems-with-cuda-installation-for-gforce-gtx-1650-ti-within-wsl2-ubuntu/186749/3 "2021-10-12T16:04:07Z")

</div>

Closed on October 12, 2021, 4:04pm UTC


