-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.73 KB
/
Makefile
File metadata and controls
53 lines (40 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.PHONY: test dis
test:
cmake --build build --target gemm gemm_checker gemm3
./build/gemm_checker -b
dis:
roc-obj -d build/libgemm.so
prof:
cmake --build build --target gemm3
/opt/rocm/bin/rocprof-compute profile -n gemm -k gemm_kernel -- ./build/gemm3
/opt/rocm/bin/rocprof-compute analyze -p workloads/gemm/MI300 > workloads/prof.log
gui:
/opt/rocm/bin/rocprof-compute analyze -p workloads/gemm/MI300 --gui
roc:
../rocprofiler-sdk-build/bin/rocprofv3 -i input.txt -- ./build/gemm3
roc-help:
../rocprofiler-sdk-build/bin/rocprofv3 -L
opt:
cmake --build build --target gemm gemm_checker
LLVM_DEBUG=amdgpu-promote-alloca /opt/rocm/llvm/bin/opt build/gemm_launcher-hip-amdgcn-amd-amdhsa-gfx942.ll \
-passes="amdgpu-promote-alloca-to-vector" \
--amdgpu-promote-alloca-to-vector-limit=512 \
--disable-promote-alloca-to-vector=0 \
-print-after-all \
-S -o opt.ll \
2> opt.log
trans:
cmake --build build --target trans
./build/trans
roc-obj -d build/trans
eval:
cmake --build build --target mla
POPCORN_FD=1 PYTHONPATH=$(realpath build):$(realpath tests/mla/submit):$(realpath tests/mla):$(PYTHONPATH) python tests/mla/eval.py benchmark tests/mla/test.txt
benchmark:
cmake --build build --target mla
POPCORN_FD=1 PYTHONPATH=$(realpath build):$(realpath tests/mla/submit):$(realpath tests/mla):$(PYTHONPATH) python tests/mla/eval.py benchmark tests/mla/benchmark.txt
rank:
cmake --build build --target mla
POPCORN_FD=1 PYTHONPATH=$(realpath build):$(realpath tests/mla/submit):$(realpath tests/mla):$(PYTHONPATH) python tests/mla/eval.py leaderboard tests/mla/rank.txt
ref:
POPCORN_FD=1 PYTHONPATH=$(realpath build):$(realpath tests/mla/ref):$(realpath tests/mla):$(PYTHONPATH) python tests/mla/eval.py benchmark tests/mla/test.txt