burn icon indicating copy to clipboard operation
burn copied to clipboard

No adapter found for graphics API AutoGraphicsApi (wgpu backend)

Open npuichigo opened this issue 2 years ago • 8 comments
trafficstars

I can run wgpu examples in WSL2 with GPU, but encountered the error No adapter found for graphics API AutoGraphicsApi and cannot find any support from doc or Google. Can anyone tell me how to properly setup adapter for wgpu backend?

npuichigo avatar Sep 09 '23 13:09 npuichigo

You can use an explicit graphics API, you can try Vulkan, OpenGL, Dx11 or Dx12 and let me know if one works.

nathanielsimard avatar Sep 12 '23 15:09 nathanielsimard

can I use vulkan in wsl2?

npuichigo avatar Sep 12 '23 16:09 npuichigo

That's a good question, I guess if it's installed you could use vulkan, but I'm unsure.

nathanielsimard avatar Sep 12 '23 21:09 nathanielsimard

@nathanielsimard Hi, I met the same error. Here is the GPU on our CentOS7 server, how to set the backend ? Could you paste the code ?

image

wangjiawen2013 avatar Apr 22 '24 08:04 wangjiawen2013

You have to install Vulkan on linux to get wgpu working. You should be able to call vulkaninfo.

nathanielsimard avatar Apr 25 '24 12:04 nathanielsimard

I haven't installed Vulkan, but I can use GPU to train the model using Pytorch. I am not sure if I installed OpenGL, how to check whether I can enable OpenGL ?

wangjiawen2013 avatar Sep 26 '24 01:09 wangjiawen2013

It depends on your OS, if CUDA is already installed you might try the cuda backend using the feature flag cuda-jit. Otherwise you have to follow a guide on how to install vulkan on your OS.

nathanielsimard avatar Sep 28 '24 15:09 nathanielsimard