Skip to content

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibylau committed Jan 6, 2024
1 parent 59c4457 commit a419aa3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module {
%21 = call @sptGrowF32(%20, %c1_i32_1) : (!llvm.ptr<i8>, i32) -> !llvm.ptr<i8>
%22 = call @rtclock() : () -> f64
%23 = arith.subf %22, %8 : f64
vector.print %23 : f64
// vector.print %23 : f64
%24 = call @rtclock() : () -> f64
%c0_i32_8 = arith.constant 0 : i32
%c1_i32_9 = arith.constant 1 : i32
Expand Down Expand Up @@ -95,7 +95,7 @@ module {
%42 = call @sptNegF32(%41, %c0_i32_16) : (!llvm.ptr<i8>, i32) -> !llvm.ptr<i8>
%43 = call @sptMoveF32(%42, %c0_i32_16, %c0_i32_16) : (!llvm.ptr<i8>, i32, i32) -> !llvm.ptr<i8>
%44 = call @sptMoveF32(%43, %c1_i32_17, %c1_i32_17) : (!llvm.ptr<i8>, i32, i32) -> !llvm.ptr<i8>
call @sptCheckF32(%44, %1) : (!llvm.ptr<i8>, !llvm.ptr<i8>) -> ()
// call @sptCheckF32(%44, %1) : (!llvm.ptr<i8>, !llvm.ptr<i8>) -> ()
call @delUniSparseTensorF32(%1) : (!llvm.ptr<i8>) -> ()
call @delUniSparseTensorF32(%44) : (!llvm.ptr<i8>) -> ()
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module {
%31 = call @sptFuseF32(%30, %c0_i32_8) : (!llvm.ptr<i8>, i32) -> !llvm.ptr<i8>
%32 = call @rtclock() : () -> f64
%33 = arith.subf %32, %20 : f64
vector.print %33 : f64
// vector.print %33 : f64
%c0_i32_16 = arith.constant 0 : i32
%c1_i32_17 = arith.constant 1 : i32
%c2_i32_18 = arith.constant 2 : i32
Expand Down
6 changes: 3 additions & 3 deletions evaluation/FormatConversion/run.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
DATASET_PATH=/install/datasets/row_major

DATASETS=(
"wiki-Vote_row_major.mtx"
"email-Eu-core_row_major.mtx"
"ML_Laplace_row_major.mtx"
"Transport_row_major.mtx"
"TSOPF_RS_b2383_row_major.mtx"
"crystm02_row_major.mtx"
"nemeth21_row_major.mtx"
)

mlir-opt ./UniSparse/unisparse_csr_csc.mlir -one-shot-bufferize="bufferize-function-boundaries=1 allow-return-allocs unknown-type-conversion=identity-layout-map function-boundary-type-conversion=identity-layout-map" -finalizing-bufferize -convert-linalg-to-loops -convert-vector-to-scf -convert-scf-to-cf -lower-affine -convert-vector-to-llvm -convert-memref-to-llvm -convert-complex-to-standard -convert-math-to-llvm -convert-math-to-libm -convert-complex-to-libm -convert-complex-to-llvm -convert-func-to-llvm -reconcile-unrealized-casts | mlir-translate -mlir-to-llvmir | opt -O3 -S | llc -O3 -relocation-model=pic -filetype=obj -o csr_csc.o
Expand Down

0 comments on commit a419aa3

Please sign in to comment.