-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #20- Added file loading for BCSR
- Loading branch information
1 parent
7cfaee1
commit ca96c37
Showing
6 changed files
with
601 additions
and
22 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
%%MatrixMarket matrix coordinate real general | ||
% | ||
% This is a test sparse matrix in Matrix Market Exchange Format. | ||
% see https://math.nist.gov/MatrixMarket | ||
% | ||
4 6 7 | ||
1 1 5.0 | ||
1 2 1.0 | ||
2 1 7.0 | ||
2 2 3.0 | ||
4 1 8.0 | ||
4 4 4.0 | ||
4 5 9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def main() { | ||
#IndexLabel Declarations | ||
IndexLabel [a] = [?]; | ||
IndexLabel [b] = [?]; | ||
|
||
#Tensor Declarations | ||
Tensor<double> A([a, b], {BCSR}); | ||
A[a, b] = comet_read(0); | ||
print(A); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
export LD_LIBRARY_PATH="/home/patrick/Work/PNNL/COMET/install/lib" | ||
export SPARSE_FILE_NAME0=first.mtx | ||
|
||
build/bin/comet-opt --convert-ta-to-it --convert-to-loops --convert-to-llvm first.ta &> first.mlir | ||
|
||
llvm/build/bin/mlir-cpu-runner first.mlir -O3 -e main -entry-point-result=void \ | ||
-shared-libs=build/lib/libcomet_runner_utils.so | ||
|