This repository was archived by the owner on Apr 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (51 loc) · 2.34 KB
/
Makefile
File metadata and controls
64 lines (51 loc) · 2.34 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
EXEC=laghos
RDY=$(findstring laghos,$(HPCTOOLKIT_EXAMPLE))
all:
@echo
@echo Specify one of the possible targets:
@echo " build: build Laghos"
@echo " run-short: use hpctoolkit to collect and analyze kernel-level information about gpu performance "
@echo " run-long: use hpctoolkit to collect and analyze kernel-level information about gpu performance "
@echo " run-pc: use hpctoolkit to collect, analyze, and present instruction-level information about gpu performance "
@echo " run-inst-count: use hpctoolkit to collect and analyze instruction counting information about gpu performance "
@echo
@echo " view: use hpcviewer to inspect performance data gathered using 'run'"
@echo " view-short: use hpcviewer to inspect performance data gathered using 'run-short'"
@echo " view-long: use hpcviewer to inspect performance data gathered using 'run-long'"
@echo " view-pc: use hpcviewer to inspect performance data gathered using 'run-pc'"
@echo " view-inst-count: use hpcviewer to inspect performance data gathered using 'run-inst-count'"
@echo " clean: delete performance data and logs"
@echo " veryclean: delete build, performance data, and logs"
@echo
build:
@READY=$(RDY) CMD="$(HPCTOOLKIT_LAGHOS_BUILD)" \
sh make-scripts/check.sh make-scripts/build.sh
run-short:
@READY=$(RDY) CMD="$(HPCTOOLKIT_LAGHOS_RUN_SHORT)" \
sh make-scripts/check.sh make-scripts/run_hpcrun_short.sh
run-long:
@READY=$(RDY) CMD="$(HPCTOOLKIT_LAGHOS_RUN_LONG)" \
sh make-scripts/check.sh make-scripts/run_hpcrun_long.sh
run-pc:
@READY=$(RDY) CMD="$(HPCTOOLKIT_LAGHOS_RUN_PC)" \
sh make-scripts/check.sh make-scripts/run_hpcrun_pc.sh
run-inst-count:
@READY=$(RDY) CMD="$(HPCTOOLKIT_LAGHOS_RUN_COUNT)" \
sh make-scripts/check.sh make-scripts/run_hpcrun_inst_count.sh
view-short:
@READY=$(RDY) CMD=sh DB="hpctoolkit-$(EXEC)-short" \
sh make-scripts/check.sh make-scripts/view.sh
view-long:
@READY=$(RDY) CMD=sh DB="hpctoolkit-$(EXEC)-long" \
sh make-scripts/check.sh make-scripts/view.sh
view-pc:
@READY=$(RDY) CMD=sh DB="hpctoolkit-$(EXEC)-pc" \
sh make-scripts/check.sh make-scripts/view.sh
view-inst-count:
@READY=$(RDY) CMD=sh DB="hpctoolkit-$(EXEC)-inst-count" \
sh make-scripts/check.sh make-scripts/view.sh
clean:
/bin/rm -rf hpctoolkit*
/bin/rm -rf log* .build*
veryclean: clean
/bin/rm -rf laghos