Open wangjiawen2013 opened 4 months ago
For wgpu you might need to install the correct graphics drivers depending on what you want to target. By default, the AutoGraphicsApi
targets metal on MacOs and vulkan on other operating systems. For vulkan you can do apt install vulkan
(and possibly vulkan-tools
if you want to validate the installation).
If you want to use another graphics API you can be explicit when using the wgpu backend. For example, the guide defines the backend as
type MyBackend = Wgpu<AutoGraphicsApi, f32, i32>;
But if you explicitly want to target OpenGl, you can use this instead
type MyBackend = Wgpu<OpenGl, f32, i32>;
with use burn::backend::wgpu::OpenGl;
.
Hi, I am trying to run burn according to the burn book example (https://burn.dev/book/getting-started.html), but it displayed "No adapter found for graphics API AutoGraphicsApi".
this is the Cargo.toml:
And this is the main function:
When I run it using cargo run, the following error occurred: