Skip to content

Commit

Permalink
update ndarray test pipeline files
Browse files Browse the repository at this point in the history
  • Loading branch information
tkarna committed Jul 10, 2024
1 parent 97e6b38 commit dbe867a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 48 deletions.
14 changes: 3 additions & 11 deletions test/Gen/NDArray/ndarray-gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,18 @@
linalg-fuse-elementwise-ops
arith-expand
memref-expand
arith-bufferize
func-bufferize
func.func(empty-tensor-to-alloc-tensor)
func.func(scf-bufferize)
func.func(tensor-bufferize)
func.func(bufferization-bufferize)
func.func(linalg-bufferize)
func.func(linalg-detensorize)
func.func(tensor-bufferize)
func.func(finalizing-bufferize)
one-shot-bufferize{bufferize-function-boundaries}
imex-remove-temporaries
func.func(convert-linalg-to-parallel-loops)
func.func(scf-parallel-loop-fusion)
drop-regions
// GPU
func.func(imex-add-outer-parallel-loop)
func.func(gpu-map-parallel-loops)
func.func(convert-parallel-loops-to-gpu)
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
func.func(insert-gpu-allocs{client-api=opencl})
drop-regions
canonicalize
normalize-memrefs
// Unstride memrefs does not seem to be needed.
Expand All @@ -45,7 +37,7 @@
imex-convert-gpu-to-spirv
spirv.module(spirv-lower-abi-attrs
spirv-update-vce)
// func.func(llvm-request-c-wrappers)
// func.func(llvm-request-c-wrappers)
serialize-spirv
expand-strided-metadata
lower-affine
Expand Down
30 changes: 12 additions & 18 deletions test/Gen/NDArray/ndarray.pp
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
builtin.module(
convert-ndarray-to-linalg
func.func(
tosa-to-linalg
tosa-to-tensor
)
canonicalize
func.func(tosa-make-broadcastable)
func.func(tosa-to-linalg)
func.func(tosa-to-tensor)
canonicalize
linalg-fuse-elementwise-ops
convert-shape-to-std
arith-expand
arith-bufferize
func-bufferize
func.func(
empty-tensor-to-alloc-tensor
scf-bufferize
tensor-bufferize
linalg-bufferize
bufferization-bufferize
linalg-detensorize
tensor-bufferize
finalizing-bufferize
convert-linalg-to-parallel-loops)
memref-expand
func.func(empty-tensor-to-alloc-tensor)
one-shot-bufferize{bufferize-function-boundaries}
imex-remove-temporaries
func.func(convert-linalg-to-parallel-loops)
func.func(scf-parallel-loop-fusion)
drop-regions
canonicalize
fold-memref-alias-ops
Expand All @@ -31,4 +24,5 @@
convert-math-to-llvm
convert-math-to-libm
convert-func-to-llvm
reconcile-unrealized-casts)
reconcile-unrealized-casts
)
12 changes: 2 additions & 10 deletions test/imex-runner/ndarray-gpu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,8 @@
linalg-fuse-elementwise-ops
arith-expand
memref-expand
arith-bufferize
func-bufferize
func.func(empty-tensor-to-alloc-tensor)
func.func(scf-bufferize)
func.func(tensor-bufferize)
func.func(bufferization-bufferize)
func.func(linalg-bufferize)
func.func(linalg-detensorize)
func.func(tensor-bufferize)
func.func(finalizing-bufferize)
one-shot-bufferize{bufferize-function-boundaries}
imex-remove-temporaries
func.func(convert-linalg-to-parallel-loops)
func.func(scf-parallel-loop-fusion)
Expand All @@ -45,7 +37,7 @@
imex-convert-gpu-to-spirv
spirv.module(spirv-lower-abi-attrs
spirv-update-vce)
// func.func(llvm-request-c-wrappers)
// func.func(llvm-request-c-wrappers)
serialize-spirv
expand-strided-metadata
lower-affine
Expand Down
10 changes: 1 addition & 9 deletions test/imex-runner/ndarray.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@
linalg-fuse-elementwise-ops
arith-expand
memref-expand
arith-bufferize
func-bufferize
func.func(empty-tensor-to-alloc-tensor)
func.func(scf-bufferize)
func.func(tensor-bufferize)
func.func(bufferization-bufferize)
func.func(linalg-bufferize)
func.func(linalg-detensorize)
func.func(tensor-bufferize)
func.func(finalizing-bufferize)
one-shot-bufferize{bufferize-function-boundaries}
imex-remove-temporaries
func.func(convert-linalg-to-parallel-loops)
func.func(scf-parallel-loop-fusion)
Expand Down

0 comments on commit dbe867a

Please sign in to comment.