-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SPIR-V compiler backend to burn-wgpu
#2386
Add SPIR-V compiler backend to burn-wgpu
#2386
Conversation
Prev Rust version is still set to 1.80 rn, it should be 1.81. That's why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new option is a killer feature, thank you so much 🔥
On another note, which could be solved in a following PR; I think we should revisit the name of our feature flags and backends. To make things simple we should have:
tch
=>libtorch
wgpu-spirv
=>vulkan
wgpu
=>webgpu
cuda-jit
=>cuda
Some feature flags are meant to customize a backend, they should be specific for that backend:
cuda
=>candle-cuda
,libtorch-cuda
metal
=>candle-metal
,libtorch-metal
openblas
=>ndarray-openblas
accelerate
=>ndarray-accelerate
Essentially, we're making backends made with cubecl
first class, meaning we don't need to prefix things with cubecl
like cubecl-vulkan
, cubecl-cuda
or cubecl-fusion
, but for the third-party backends, I think it's more flexible, since we won't have feature flags that may clash with our own. In that sense, we may also rename burn-jit
to burn-cubecl
, since it's pretty much the backend built on top of cubecl
.
That sounds like a good idea and something I think we can do along with writing a proper CUDA readme and adding |
Gonna create an issue with the comment above. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2386 +/- ##
==========================================
- Coverage 85.22% 85.22% -0.01%
==========================================
Files 786 786
Lines 104088 104088
==========================================
- Hits 88706 88705 -1
- Misses 15382 15383 +1 ☔ View full report in Codecov by Sentry. |
Pull Request Template
Checklist
run-checks all
script has been executed.Changes
Adds a feature to enable the new alternative SPIR-V compiler for the WGPU backend. When the feature is enabled the compiler defaults to SPIR-V, but can still be overriden with a generic.
Testing
New testing option has been added to run SPIR-V tests in addition to the
wgsl
ones. All tests pass.xtask validate
passes.