-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (72 loc) · 2.99 KB
/
Copy pathMakefile
File metadata and controls
93 lines (72 loc) · 2.99 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
SHELL := /bin/bash
ROOT := $(CURDIR)
CHOREO_DIR := $(ROOT)/croqtile
TRITON_VENV := $(ROOT)/external/triton-v3.6.0/.venv
TRITON_PYTHON := $(TRITON_VENV)/bin/python
.PHONY: help reproduce-all choreo-build choreo-test choreo-stats choreo-cto \
bug-detect mlir-clone mlir-build compare compare-triton \
generate-triton-suite render-triton-cases \
test-triton-unary-chunks test-triton-binary-chunks \
test-triton test-triton-correctness plot clean-results
help:
@echo "SVN Artifact Evaluation (CGO 2027)"
@echo "==================================="
@echo ""
@echo "Quick start:"
@echo " make reproduce-all - One-command full evaluation"
@echo ""
@echo "Individual steps:"
@echo " make choreo-build - Build Choreo compiler from source"
@echo " make choreo-test - Run compile-time tests (check + cli)"
@echo " make choreo-stats - RQ1: collect assessment statistics"
@echo " make bug-detect - RQ2: bug detection evaluation"
@echo " make choreo-cto - RQ4: measure compile-time overhead"
@echo ""
@echo "MLIR baseline (optional, ~30 min build):"
@echo " make mlir-clone - Clone llvm-project release/22.x"
@echo " make mlir-build - Build mlir-opt, mlir-translate, FileCheck"
@echo " make compare - Run SVN vs MLIR comparison"
@echo ""
@echo "Triton baseline (optional):"
@echo " make compare-triton - Run SVN vs Triton comparison"
@echo " make test-triton - All Triton cases (compile-only)"
@echo ""
@echo "Utilities:"
@echo " make plot - Regenerate figures"
@echo " make clean-results - Remove generated benchmark outputs"
reproduce-all:
bash scripts/reproduce_all.sh
choreo-build:
$(MAKE) -C $(CHOREO_DIR) release
choreo-test:
cd $(CHOREO_DIR) && bash tests/lit.sh tests/check && bash tests/lit.sh tests/cli
choreo-stats:
python3 scripts/choreo_assertion_stats.py --choreo $(CHOREO_DIR)/choreo
bug-detect:
python3 scripts/bug_detection_eval.py
choreo-cto:
python3 scripts/choreo_compile_overhead.py --reps 3
mlir-clone:
bash scripts/clone_llvm_mlir.sh
mlir-build:
bash scripts/build_llvm_mlir.sh
compare:
bash scripts/compare_choreo_mlir.sh
compare-triton:
bash scripts/compare_choreo_triton.sh
generate-triton-suite:
$(TRITON_PYTHON) scripts/generate_triton_benchmark_suite.py
render-triton-cases:
$(TRITON_PYTHON) scripts/render_triton_standalone_cases.py
test-triton-unary-chunks:
$(TRITON_PYTHON) benchmark/triton/tests/test_unary_chunk_data.py --device cuda
test-triton-binary-chunks:
$(TRITON_PYTHON) benchmark/triton/tests/test_binary_chunk_data.py --device cuda
test-triton:
$(TRITON_PYTHON) benchmark/triton/tests/test_all_cases.py --mode compile-only
test-triton-correctness:
$(TRITON_PYTHON) benchmark/triton/tests/test_all_cases.py --mode chunk-check
plot:
bash scripts/render_paper_figures.sh
clean-results:
rm -rf benchmark/results benchmark/mlir/results benchmark/triton/results