Skip to content

Commit

Permalink
fix: 1. add missing newlines at the end of multiple MLIR files. 2. re…
Browse files Browse the repository at this point in the history
…fine several binarys' path in the makefile.
  • Loading branch information
xTayEx committed Jan 4, 2025
1 parent 4b6f146 commit 1951828
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 21 deletions.
12 changes: 7 additions & 5 deletions examples/MLIRVectorGPU/makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash
BUDDY_OPT := ../../build/bin/buddy-opt
MLIR_OPT := ../../llvm/build/bin/mlir-opt
MLIR_TRANSLATE := ../../llvm/build/bin/mlir-translate
MLIR_CPU_RUNNER := ../../llvm/build/bin/mlir-cpu-runner
LLC := ../../llvm/build/bin/llc
BUDDY_BUILD_DIR := ../../build/
LLVM_BUILD_DIR := ../../llvm/build/
BUDDY_OPT := ${BUDDY_BUILD_DIR}/bin/buddy-opt
MLIR_OPT := ${LLVM_BUILD_DIR}/bin/mlir-opt
MLIR_TRANSLATE := ${LLVM_BUILD_DIR}/bin/mlir-translate
MLIR_CPU_RUNNER := ${LLVM_BUILD_DIR}/bin/mlir-cpu-runner
LLC := ${LLVM_BUILD_DIR}/bin/llc
OPT_FLAG := -O0
CUDA_COMPUTE_CAPACITY ?= $(shell nvidia-smi --query-gpu=compute_cap --format=csv,noheader | awk 'NR==1{printf "sm_%.0f", $$0*10}')

Expand Down
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-bitcast.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ module attributes {gpu.container_module} {
func.func private @printMemrefF32(%ptr : memref<*xf32>)
func.func private @printMemrefI32(%ptr : memref<*xi32>)

}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-compressstore.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ module attributes {gpu.container_module} {
func.return
}
func.func private @printMemrefI32(%ptr : memref<*xi32>)
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-constant-mask.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ module attributes {gpu.container_module} {
func.return
}
func.func private @printMemrefI32(%ptr : memref<*xi1>)
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-contract.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ module attributes {gpu.container_module} {
func.return
}
func.func private @printMemrefF32(%ptr : memref<*xvector<3x3xf32>>)
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-create-mask.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-extract.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ module attributes {gpu.container_module} {
gpu.launch_func @kernels::@vector_extract blocks in (%c1, %c1, %c1) threads in (%c1, %c1, %c1) args()
func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-fma.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ module attributes {gpu.container_module} {
vector.print %result_v : vector<4xf32>
func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-gather.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-insert.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}
1 change: 0 additions & 1 deletion examples/MLIRVectorGPU/vector-load-store.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ module attributes {gpu.container_module} {
}
func.func private @printMemrefF32(%ptr : memref<*xf32>)
}

2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-outerproduct.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-reduction.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-shape-cast.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ module attributes {gpu.container_module} {
vector.print %result_v : vector<6xi32>
func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-splat.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ module attributes {gpu.container_module} {
vector.print %result_v : vector<3xf32>
func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-transpose.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ module attributes {gpu.container_module} {
vector.print %result1_v_reshape : vector<5x3x4xf32>
func.return
}
}
}
2 changes: 1 addition & 1 deletion examples/MLIRVectorGPU/vector-type-cast.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ module attributes {gpu.container_module} {

func.return
}
}
}

0 comments on commit 1951828

Please sign in to comment.