Commit f6a4699
authored
feat: Runtime enum (#1208)
* fix: Fix no_std, avoid future issues
* Gate feature-specific imports
* Make `cubecl-core` no_std
* use core::sync::atomic instead of portable_atomic
* Enable std for tests by default
* Proper fix for exported tests
* Use normal `Option` for `CubeOption`
* Implement if let
* Implement more `Options` methods
* Fix `unwrap_or_default`
* Fix clippy
* Fix `is_none`
* Fix `as_ref` name
* WIP
* Add `IntoRuntime` derive
* Implement `Assign`
* Implement `Branch::Unreachable`
* Add wildcard support
* Move match detection into parse file
* Fixes and workarounds
* Implement runtime `Option`
* Fixes
* Implement runtime if let
* Implement `derive_expand`
* Use signed discriminant, clean up runtime option
* Require `ScalarArgSettings` for `Numeric`
* Fix `trailing_zeros` on Vulkan
* Fix liveness analysis ordering
* Add runtime enums to book
* Fixes
* Ignore tests on unstable option methods
* Fix `ExpandElementAssign`
* Fixes
* Format
* Normalize usize ranges
* Fix clippy and u64 indexing on Vulkan
* Fix read on dummy server1 parent cb7218b commit f6a4699
91 files changed
Lines changed: 5132 additions & 1069 deletions
File tree
- crates
- cubecl-common/src/device/handle
- cubecl-core/src
- frontend
- container
- array
- line
- tensor
- element
- float
- int
- operation
- runtime_tests
- cubecl-cpp/src
- cuda
- hip
- metal
- cubecl-cpu/src/compiler
- passes
- visitor
- cubecl-ir/src
- cubecl-macros
- src
- generate
- cube_type
- parse
- cube_type
- cubecl-opt/src
- analyses
- passes
- cubecl-runtime
- src
- memory_management
- tests/dummy
- cubecl-spirv/src
- cubecl-std/src/tensor
- cubecl-wgpu/src/compiler/wgsl
- cubecl-book/src/language-support
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments