File tree Expand file tree Collapse file tree 12 files changed +122
-0
lines changed
vector_layout_scalar_math Expand file tree Collapse file tree 12 files changed +122
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ members = [
18
18
" storage_class/array_access/array_access-wgsl" ,
19
19
" lang/abi/vector_layout/cpu" ,
20
20
" lang/abi/vector_layout/rust-gpu" ,
21
+ " lang/abi/vector_layout_cuda/cpu" ,
22
+ " lang/abi/vector_layout_cuda/rust-gpu" ,
23
+ " lang/abi/vector_layout_scalar_math/cpu" ,
24
+ " lang/abi/vector_layout_scalar_math/rust-gpu" ,
21
25
" lang/control_flow/control_flow-rust" ,
22
26
" lang/control_flow/control_flow-wgsl" ,
23
27
" lang/control_flow_complex/control_flow_complex-rust" ,
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " abi-vector-layout-scalar-math-cpu"
3
+ edition.workspace = true
4
+
5
+ [lints ]
6
+ workspace = true
7
+
8
+ # GPU deps
9
+ [dependencies ]
10
+ abi-vector-layout-cpu = { path = " ../../vector_layout/cpu" , features = [" cuda" ] }
11
+
12
+ # CPU deps (for the test harness)
13
+ [target .'cfg(not(target_arch = "spirv"))' .dependencies ]
14
+ difftest.workspace = true
Original file line number Diff line number Diff line change
1
+ use abi_vector_layout_cpu:: glam_features:: GlamFeatures ;
2
+
3
+ fn main ( ) {
4
+ abi_vector_layout_cpu:: cpu_driver:: run ( GlamFeatures :: Cuda ) ;
5
+ }
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " abi-vector-layout-scalar-math-rust-gpu"
3
+ edition.workspace = true
4
+
5
+ [lib ]
6
+ crate-type = [" lib" , " dylib" ]
7
+
8
+ [lints ]
9
+ workspace = true
10
+
11
+ [dependencies ]
12
+ abi-vector-layout-cpu = { path = " ../../vector_layout/cpu" , features = [" cuda" ] }
13
+
14
+ # CPU deps (for the test harness)
15
+ [target .'cfg(not(target_arch = "spirv"))' .dependencies ]
16
+ difftest.workspace = true
Original file line number Diff line number Diff line change
1
+ #![ cfg_attr( target_arch = "spirv" , no_std) ]
2
+
3
+ pub use abi_vector_layout_cpu:: shader:: main_cs;
Original file line number Diff line number Diff line change
1
+ use abi_vector_layout_cpu:: glam_features:: GlamFeatures ;
2
+
3
+ fn main ( ) {
4
+ abi_vector_layout_cpu:: shader_driver:: run ( GlamFeatures :: Cuda ) ;
5
+ }
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " abi-vector-layout-cuda-cpu"
3
+ edition.workspace = true
4
+
5
+ [lints ]
6
+ workspace = true
7
+
8
+ # GPU deps
9
+ [dependencies ]
10
+ abi-vector-layout-cpu = { path = " ../../vector_layout/cpu" , features = [" scalar-math" ] }
11
+
12
+ # CPU deps (for the test harness)
13
+ [target .'cfg(not(target_arch = "spirv"))' .dependencies ]
14
+ difftest.workspace = true
Original file line number Diff line number Diff line change
1
+ use abi_vector_layout_cpu:: glam_features:: GlamFeatures ;
2
+
3
+ fn main ( ) {
4
+ abi_vector_layout_cpu:: cpu_driver:: run ( GlamFeatures :: ScalarMath ) ;
5
+ }
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " abi-vector-layout-cuda-rust-gpu"
3
+ edition.workspace = true
4
+
5
+ [lib ]
6
+ crate-type = [" lib" , " dylib" ]
7
+
8
+ [lints ]
9
+ workspace = true
10
+
11
+ [dependencies ]
12
+ abi-vector-layout-cpu = { path = " ../../vector_layout/cpu" , features = [" scalar-math" ] }
13
+
14
+ # CPU deps (for the test harness)
15
+ [target .'cfg(not(target_arch = "spirv"))' .dependencies ]
16
+ difftest.workspace = true
You can’t perform that action at this time.
0 commit comments