diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir @@ -32,6 +32,7 @@ %d2_0 = tensor.dim %t2, %c0 : tensor %d1_1 = tensor.dim %t1, %c1 : tensor<4x5xf64, #DCSR> %d2_1 = tensor.dim %t2, %c1 : tensor + // CHECK: 4 vector.print %d1_0 : index // CHECK-NEXT: 2 @@ -40,6 +41,11 @@ vector.print %d1_1 : index // CHECK-NEXT: 3 vector.print %d2_1 : index + + // Release resources. + bufferization.dealloc_tensor %t1 : tensor<4x5xf64, #DCSR> + bufferization.dealloc_tensor %t2 : tensor + return } } diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir @@ -101,6 +101,10 @@ // Release the resources. bufferization.dealloc_tensor %a : tensor + // TODO(springerm): auto release! + bufferization.dealloc_tensor %b : tensor + bufferization.dealloc_tensor %x : tensor + return } } diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir @@ -124,6 +124,11 @@ // Release the resources. bufferization.dealloc_tensor %b : tensor + // TODO(springerm): auto release! + bufferization.dealloc_tensor %a : tensor + bufferization.dealloc_tensor %c : tensor + bufferization.dealloc_tensor %d : tensor + return } } diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir @@ -119,6 +119,11 @@ // Release the resources. bufferization.dealloc_tensor %s : tensor + // TODO(springerm): auto release! + bufferization.dealloc_tensor %x : tensor + bufferization.dealloc_tensor %a : tensor + bufferization.dealloc_tensor %b : tensor + return } } diff --git a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir --- a/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir +++ b/mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir @@ -84,7 +84,7 @@ ^bb0(%i : index, %j : index): tensor.yield %i0 : f64 } : tensor - + // Call kernel. %0 = call @kernel_spmm(%a, %b, %x) : (tensor, tensor, tensor) -> tensor @@ -99,6 +99,10 @@ // Release the resources. bufferization.dealloc_tensor %a : tensor + // TODO(springerm): auto release! + bufferization.dealloc_tensor %b : tensor + bufferization.dealloc_tensor %x : tensor + return } }