Update: 6/22/2020. The following issue is resolved with the 455.41 driver. Please download the latest drivers from https://developer.nvidia.com/cuda/wsl . Other known limitations with CUDA on WSL 2 are documented in the User Guide: https://docs.nvidia.com/cuda/wsl-user-guide/index.html#known-limitations
- On some systems, including AMD Ryzen, there is an issue with cache coherency settings between the GPU and CPUs when using CUDA and WSL 2. This may result in either CUDA applications crashing or appearing to hang when run in WSL 2. This issue is under active investigation.