Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LDE: Project] 'Codegen-only compilation pipeline for LA operations' #935

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
04fc40e
build daphne-opt
WangYuyao Dec 4, 2024
03cb04a
add SliceRowOpLowering
WangYuyao Dec 21, 2024
537f655
add SliceColOpLowering
WangYuyao Dec 22, 2024
2621af4
exclude linalg.generic op, add memreftollvm pass
WangYuyao Dec 28, 2024
3a9eafe
Revert "build daphne-opt"
WangYuyao Dec 28, 2024
55d8a76
remove improper test case
WangYuyao Dec 28, 2024
204a511
combine slice row and column
WangYuyao Jan 20, 2025
f218f30
add ExtractOpLowering
WangYuyao Jan 20, 2025
99125d4
add unfinished ExtractOpLowering
WangYuyao Jan 21, 2025
77938fb
Merge remote-tracking branch 'upstream/main' into LDEProject
WangYuyao Jan 21, 2025
f234567
add EwUnaryOpsLowering for Sparse Matrix
WangYuyao Jan 25, 2025
e68919a
comment out extract op lowering
WangYuyao Jan 27, 2025
7cb9c3f
add untested kernel for converting memref to CSR
WangYuyao Jan 28, 2025
edc5546
add EwUnaryMat for CSR Matrix
WangYuyao Jan 30, 2025
196b8e1
add a new constructor for CSRMatrix
WangYuyao Feb 3, 2025
6212dc6
adapt MemRefToCSR kernel with new constructor
WangYuyao Feb 3, 2025
5679eea
add CSR support to EwBinaryObjSca
WangYuyao Feb 3, 2025
a2f9c90
add EwOpsLowering for Op between CSR and Dense
WangYuyao Feb 6, 2025
90dabd6
add EwBinaryMat kernel for Dense <- (CSR + Dense)
WangYuyao Feb 7, 2025
b171392
update kernels.json
WangYuyao Feb 7, 2025
960a4c2
add CSR +/* CSR
WangYuyao Feb 10, 2025
4752fdb
add EwBinaryMat CSR <- (CSR, CSR)
WangYuyao Feb 10, 2025
c18516c
fix bug
WangYuyao Feb 10, 2025
a8c3268
fix bug
WangYuyao Feb 10, 2025
4a8fd6a
add Matmul Lowering for (CSR, Dense)
WangYuyao Feb 11, 2025
a3bbd9e
add Matmul for (CSR, CSR), correct EwOpsLowering
WangYuyao Feb 17, 2025
d4a7cdb
add a script level test case for gemm codegen
WangYuyao Feb 23, 2025
e2476a2
clean comment-outs
WangYuyao Feb 24, 2025
d5361d4
add comments and fix a bug
WangYuyao Feb 24, 2025
1cbc9f8
edit the comments
WangYuyao Feb 24, 2025
ee3959a
Delete src/compiler/lowering/ExtractOpLowering.cpp
WangYuyao Feb 24, 2025
f743c81
remove ExtractOp lowering related
WangYuyao Feb 24, 2025
df2796d
optimize CSR Matrix Index in MatMulOpLowering
WangYuyao Feb 27, 2025
23921b8
add tests
WangYuyao Feb 27, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
comment out extract op lowering
WangYuyao committed Jan 27, 2025
commit e68919a20f7f3e61cbabc935454a9b0a46738619
2 changes: 1 addition & 1 deletion src/compiler/execution/DaphneIrExecutor.cpp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine these into a single pass which has two rewrite patterns.

Original file line number Diff line number Diff line change
@@ -279,7 +279,7 @@ void DaphneIrExecutor::buildCodegenPipeline(mlir::PassManager &pm) {
//pm.addPass(mlir::daphne::createSliceRowOpLoweringPass());
//pm.addPass(mlir::daphne::createSliceColOpLoweringPass());
pm.addPass(mlir::daphne::createSliceOpLoweringPass());
pm.addPass(mlir::daphne::createExtractOpLoweringPass());
//pm.addPass(mlir::daphne::createExtractOpLoweringPass());

pm.addPass(mlir::createInlinerPass());

3 changes: 3 additions & 0 deletions test/api/cli/io/matrix_full.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1,2
3,4
5,6
1 change: 1 addition & 0 deletions test/api/cli/io/matrix_full.csv.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"numCols":2,"numRows":3,"valueType":"si64"}
3 changes: 3 additions & 0 deletions test/api/cli/io/matrix_view.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2
4
6
1 change: 1 addition & 0 deletions test/api/cli/io/matrix_view.csv.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"numCols":1,"numRows":3,"valueType":"si64"}