#Unable to request adapter for webgpu on WSL2

1 messages · Page 1 of 1 (latest)

polar sage
#

Hi. I would like to experiment with webgpu on wsl, but when I tried running my code with deno, I couldn't request adapter.

console.log(await navigator.gpu.requestAdapter()) // returns null on WSL2
#

I tried running nvidia-smi to make sure that I can access my gpu

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.57.02              Driver Version: 566.03         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060        On  |   00000000:29:00.0  On |                  N/A |
|  0%   42C    P8             N/A /  115W |    2132MiB /   8188MiB |      7%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A        33      G   /Xwayland                                   N/A      |
+-----------------------------------------------------------------------------------------+
#

I also tried to requestAdapter on windows(the same machine) and on macos. They both worked

heavy topaz
polar sage
#

that's unfortunate 😩