Skip to content

Commit 27251bd

Browse files
committed
bless compiletests
1 parent ea1d46c commit 27251bd

16 files changed

+117
-117
lines changed

tests/compiletests/ui/warp/matrix/basic_matrix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub unsafe fn test_warp_matrix_type_safe() {
2525
let c_matrix: *mut f32 = core::ptr::null_mut();
2626

2727
// Load operations would use compile-time stride validation
28-
a_fragment.load::<16>(a_matrix); // STRIDE validated at compile time
28+
a_fragment.load::<16>(a_matrix); // STRIDE validated at compile time
2929
b_fragment.load::<16>(b_matrix);
3030

3131
// Perform matrix multiply-accumulate

tests/compiletests/ui/warp/matrix/fail/element/custom_type.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ error[E0277]: `CustomType` cannot be used as a tensor core matrix element
1818
i8
1919
u8
2020
note: required by a bound in `TensorCore`
21-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:26
21+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:26
2222
|
23-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
23+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2424
| ^^^^^^^^^^^^^ required by this bound in `TensorCore`
2525

2626
error[E0599]: the function or associated item `new` exists for struct `TensorCore<CustomType, Shape<16, 16, 16>>`, but its trait bounds were not satisfied
@@ -35,9 +35,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
3535
= note: the following trait bounds were not satisfied:
3636
`CustomType: MatrixElement`
3737
note: the trait `MatrixElement` must be implemented
38-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:139:1
38+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:144:1
3939
|
40-
139 | pub trait MatrixElement: Copy + sealed::Sealed {
40+
144 | pub trait MatrixElement: Copy + sealed::Sealed {
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error: aborting due to 2 previous errors

tests/compiletests/ui/warp/matrix/fail/element/u16.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ error[E0277]: `u16` cannot be used as a tensor core matrix element
1515
i8
1616
u8
1717
note: required by a bound in `TensorCore`
18-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:26
18+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:26
1919
|
20-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
20+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2121
| ^^^^^^^^^^^^^ required by this bound in `TensorCore`
2222

2323
error[E0599]: the function or associated item `new` exists for struct `TensorCore<u16, Shape<16, 16, 16>>`, but its trait bounds were not satisfied

tests/compiletests/ui/warp/matrix/fail/layout/custom_layout.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ error[E0277]: `CustomLayout` is not a valid matrix layout
1212
Col
1313
Row
1414
note: required by a bound in `Accumulator::<T, Shape>::store`
15-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:396:12
15+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:401:12
1616
|
17-
394 | pub unsafe fn store<L, const STRIDE: usize>(&self, ptr: *mut T)
17+
399 | pub unsafe fn store<L, const STRIDE: usize>(&self, ptr: *mut T)
1818
| ----- required by a bound in this associated function
19-
395 | where
20-
396 | L: Layout,
19+
400 | where
20+
401 | L: Layout,
2121
| ^^^^^^ required by this bound in `Accumulator::<T, Shape>::store`
2222

2323
error[E0277]: Cannot store accumulator: `f32` with shape `cuda_std::warp::matrix::dims::Shape<16, 16, 16>` and layout `CustomLayout` is not supported
@@ -39,12 +39,12 @@ error[E0277]: Cannot store accumulator: `f32` with shape `cuda_std::warp::matrix
3939
`f32` implements `StoreMatrixD<cuda_std::warp::matrix::dims::Shape<32, 8, 16>, Row>`
4040
and 2 others
4141
note: required by a bound in `Accumulator::<T, Shape>::store`
42-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:398:12
42+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:403:12
4343
|
44-
394 | pub unsafe fn store<L, const STRIDE: usize>(&self, ptr: *mut T)
44+
399 | pub unsafe fn store<L, const STRIDE: usize>(&self, ptr: *mut T)
4545
| ----- required by a bound in this associated function
4646
...
47-
398 | T: ops::StoreMatrixD<Shape, L>,
47+
403 | T: ops::StoreMatrixD<Shape, L>,
4848
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Accumulator::<T, Shape>::store`
4949

5050
error: aborting due to 2 previous errors

tests/compiletests/ui/warp/matrix/fail/shape/invalid_dims.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<17, 17, 17>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<17, 17, 17>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
11 | let invalid = TensorCore::<f16, dims::Shape<17, 17, 17>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<17, 17, 17>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<17, 17, 17>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:
@@ -53,9 +53,9 @@ error[E0277]: `Shape<64, 64, 64>` is not a valid tensor core shape
5353
Shape<8, 8, 32>
5454
Shape<8, 8, 4>
5555
note: required by a bound in `TensorCore`
56-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
56+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
5757
|
58-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
58+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
5959
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
6060

6161
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<64, 64, 64>>`, but its trait bounds were not satisfied
@@ -64,9 +64,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
6464
15 | let too_large = TensorCore::<f16, dims::Shape<64, 64, 64>>::new();
6565
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<64, 64, 64>>` due to unsatisfied trait bounds
6666
|
67-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
67+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
6868
|
69-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
69+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
7070
| ---------------------------------------------------------------- doesn't satisfy `Shape<64, 64, 64>: TensorCoreShape`
7171
|
7272
= note: the following trait bounds were not satisfied:
@@ -90,9 +90,9 @@ error[E0277]: `Shape<1, 1, 1>` is not a valid tensor core shape
9090
Shape<8, 8, 32>
9191
Shape<8, 8, 4>
9292
note: required by a bound in `TensorCore`
93-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
93+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
9494
|
95-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
95+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
9696
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
9797

9898
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<1, 1, 1>>`, but its trait bounds were not satisfied
@@ -101,9 +101,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
101101
19 | let too_small = TensorCore::<f16, dims::Shape<1, 1, 1>>::new();
102102
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<1, 1, 1>>` due to unsatisfied trait bounds
103103
|
104-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
104+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
105105
|
106-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
106+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
107107
| ---------------------------------------------------------------- doesn't satisfy `Shape<1, 1, 1>: TensorCoreShape`
108108
|
109109
= note: the following trait bounds were not satisfied:

tests/compiletests/ui/warp/matrix/fail/shape/k_invalid.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<16, 16, 3>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<16, 16, 3>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
10 | let _tc = TensorCore::<f16, dims::Shape<16, 16, 3>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<16, 16, 3>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<16, 16, 3>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:

tests/compiletests/ui/warp/matrix/fail/shape/m_not_power_of_two.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<7, 8, 16>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<7, 8, 16>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
10 | let _tc = TensorCore::<f16, dims::Shape<7, 8, 16>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<7, 8, 16>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<7, 8, 16>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:

tests/compiletests/ui/warp/matrix/fail/shape/n_invalid.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<16, 15, 16>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<16, 15, 16>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
10 | let _tc = TensorCore::<f16, dims::Shape<16, 15, 16>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<16, 15, 16>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<16, 15, 16>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:

tests/compiletests/ui/warp/matrix/fail/shape/too_large.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<64, 64, 64>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<64, 64, 64>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
10 | let _tc = TensorCore::<f16, dims::Shape<64, 64, 64>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<64, 64, 64>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<64, 64, 64>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:

tests/compiletests/ui/warp/matrix/fail/shape/too_small.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ error[E0277]: `Shape<4, 4, 2>` is not a valid tensor core shape
1616
Shape<8, 8, 32>
1717
Shape<8, 8, 4>
1818
note: required by a bound in `TensorCore`
19-
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1832:48
19+
--> /workspace/crates/cuda_std/src/warp/matrix/mod.rs:1764:48
2020
|
21-
1832 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
21+
1764 | pub struct TensorCore<T: MatrixElement, Shape: TensorCoreShape> {
2222
| ^^^^^^^^^^^^^^^ required by this bound in `TensorCore`
2323

2424
error[E0599]: the function or associated item `new` exists for struct `TensorCore<cuda_std::f16, Shape<4, 4, 2>>`, but its trait bounds were not satisfied
@@ -27,9 +27,9 @@ error[E0599]: the function or associated item `new` exists for struct `TensorCor
2727
10 | let _tc = TensorCore::<f16, dims::Shape<4, 4, 2>>::new();
2828
| ^^^ function or associated item cannot be called on `TensorCore<cuda_std::f16, Shape<4, 4, 2>>` due to unsatisfied trait bounds
2929
|
30-
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:28:5
30+
::: /workspace/crates/cuda_std/src/warp/matrix/mod.rs:33:5
3131
|
32-
28 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
32+
33 | pub struct Shape<const M: usize, const N: usize, const K: usize>;
3333
| ---------------------------------------------------------------- doesn't satisfy `Shape<4, 4, 2>: TensorCoreShape`
3434
|
3535
= note: the following trait bounds were not satisfied:

0 commit comments

Comments
 (0)