File tree Expand file tree Collapse file tree 9 files changed +107
-12
lines changed
mlir/test/Integration/Dialect/SparseTensor/CPU Expand file tree Collapse file tree 9 files changed +107
-12
lines changed Original file line number Diff line number Diff line change 13
13
// Do the same run, but now with SIMDization as well. This should not change the outcome.
14
14
//
15
15
// RUN: mlir-opt %s \
16
- // RUN: --sparsification="vectorization-strategy=2 vl=2 enable-simd-index32 " --sparse-tensor-conversion \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=2" --sparse-tensor-conversion \
17
17
// RUN: --convert-vector-to-scf --convert-scf-to-std \
18
18
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
19
// RUN: --std-bufferize --finalizing-bufferize --lower-affine \
23
23
// RUN: -e entry -entry-point-result=void \
24
24
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
25
25
// RUN: FileCheck %s
26
- //
27
26
28
27
#SV = #sparse_tensor.encoding <{ dimLevelType = [ " compressed" ] }>
29
28
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: TENSOR0="%mlir_integration_test_dir/data/test.tns" \
8
+ // RUN: mlir-cpu-runner \
9
+ // RUN: -e entry -entry-point-result=void \
10
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
11
+ // RUN: FileCheck %s
12
+ //
13
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
14
+ //
15
+ // RUN: mlir-opt %s \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=4" --sparse-tensor-conversion \
17
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
18
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
20
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
21
// RUN: TENSOR0="%mlir_integration_test_dir/data/test.tns" \
8
22
// RUN: mlir-cpu-runner \
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: TENSOR0="%mlir_integration_test_dir/data/mttkrp_b.tns" \
8
+ // RUN: mlir-cpu-runner \
9
+ // RUN: -e entry -entry-point-result=void \
10
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
11
+ // RUN: FileCheck %s
12
+ //
13
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
14
+ //
15
+ // RUN: mlir-opt %s \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=4" --sparse-tensor-conversion \
17
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
18
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
20
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
21
// RUN: TENSOR0="%mlir_integration_test_dir/data/mttkrp_b.tns" \
8
22
// RUN: mlir-cpu-runner \
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: TENSOR0="%mlir_integration_test_dir/data/test.mtx" \
8
+ // RUN: mlir-cpu-runner \
9
+ // RUN: -e entry -entry-point-result=void \
10
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
11
+ // RUN: FileCheck %s
12
+ //
13
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
14
+ //
15
+ // RUN: mlir-opt %s \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=4" --sparse-tensor-conversion \
17
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
18
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
20
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
21
// RUN: TENSOR0="%mlir_integration_test_dir/data/test.mtx" \
8
22
// RUN: mlir-cpu-runner \
Original file line number Diff line number Diff line change 10
10
// RUN: -e entry -entry-point-result=void \
11
11
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
12
12
// RUN: FileCheck %s
13
+ //
14
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
15
+ //
16
+ // RUN: mlir-opt %s \
17
+ // RUN: --linalg-generalize-named-ops --linalg-fuse-elementwise-ops \
18
+ // RUN: --sparsification="vectorization-strategy=2 vl=2" --sparse-tensor-conversion \
19
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
20
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
21
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
22
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm \
23
+ // RUN: --convert-std-to-llvm --reconcile-unrealized-casts | \
24
+ // RUN: mlir-cpu-runner \
25
+ // RUN: -e entry -entry-point-result=void \
26
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
27
+ // RUN: FileCheck %s
13
28
14
29
#DCSR = #sparse_tensor.encoding <{ dimLevelType = [ " compressed" , " compressed" ] }>
15
30
Original file line number Diff line number Diff line change 12
12
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
13
13
// RUN: FileCheck %s
14
14
//
15
- // Do the same run, but now with SIMDization as well.
16
- // This should not change the outcome.
15
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
17
16
//
18
17
// RUN: mlir-opt %s \
19
18
// RUN: --linalg-generalize-named-ops --linalg-fuse-elementwise-ops \
28
27
// RUN: -e entry -entry-point-result=void \
29
28
// RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
30
29
// RUN: FileCheck %s
31
- //
30
+
32
31
// Interop between linalg/sparse leaves some issues to be revolved:
33
32
// UNSUPPORTED: asan
34
33
35
-
36
34
#SM = #sparse_tensor.encoding <{ dimLevelType = [ " compressed" , " compressed" ] }>
37
35
38
36
#trait_sampled_dense_dense = {
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: mlir-cpu-runner \
8
+ // RUN: -e entry -entry-point-result=void \
9
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
10
+ // RUN: FileCheck %s
11
+ //
12
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
13
+ //
14
+ // RUN: mlir-opt %s \
15
+ // RUN: --sparsification="vectorization-strategy=2 vl=4" --sparse-tensor-conversion \
16
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
17
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
18
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
19
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
20
// RUN: mlir-cpu-runner \
8
21
// RUN: -e entry -entry-point-result=void \
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: TENSOR0="%mlir_integration_test_dir/data/wide.mtx" \
8
+ // RUN: mlir-cpu-runner \
9
+ // RUN: -e entry -entry-point-result=void \
10
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
11
+ // RUN: FileCheck %s
12
+ //
13
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
14
+ //
15
+ // RUN: mlir-opt %s \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=2" --sparse-tensor-conversion \
17
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
18
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
20
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
21
// RUN: TENSOR0="%mlir_integration_test_dir/data/wide.mtx" \
8
22
// RUN: mlir-cpu-runner \
Original file line number Diff line number Diff line change 2
2
// RUN: --sparsification --sparse-tensor-conversion \
3
3
// RUN: --convert-vector-to-scf --convert-scf-to-std \
4
4
// RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
5
- // RUN: --std-bufferize --finalizing-bufferize \
5
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
+ // RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
+ // RUN: TENSOR0="%mlir_integration_test_dir/data/test.mtx" \
8
+ // RUN: mlir-cpu-runner \
9
+ // RUN: -e entry -entry-point-result=void \
10
+ // RUN: -shared-libs=%mlir_integration_test_dir/libmlir_c_runner_utils%shlibext | \
11
+ // RUN: FileCheck %s
12
+ //
13
+ // Do the same run, but now with SIMDization as well. This should not change the outcome.
14
+ //
15
+ // RUN: mlir-opt %s \
16
+ // RUN: --sparsification="vectorization-strategy=2 vl=2" --sparse-tensor-conversion \
17
+ // RUN: --convert-vector-to-scf --convert-scf-to-std \
18
+ // RUN: --func-bufferize --tensor-constant-bufferize --tensor-bufferize \
19
+ // RUN: --std-bufferize --finalizing-bufferize --lower-affine \
6
20
// RUN: --convert-vector-to-llvm --convert-memref-to-llvm --convert-std-to-llvm --reconcile-unrealized-casts | \
7
21
// RUN: TENSOR0="%mlir_integration_test_dir/data/test.mtx" \
8
22
// RUN: mlir-cpu-runner \
You can’t perform that action at this time.
0 commit comments