-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 755 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 755 Bytes
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
# cannot be named "build", otherwise clashes with the target
# and never re-builds once created
OUT="build_output"
IMPLEMENTATIONS = allreduce allreduce-butterfly allreduce-ring allgather allgather-async allreduce-rabenseifner rabenseifner-gather g-rabenseifner-allgather g-rabenseifner-allgather-scatter bruck-async g-rabenseifner-allgather-segmented allreduce-butterfly-segmented
build:
cmake -S . -B ${OUT}
cmake --build ${OUT}
test: build
cd ${OUT} && ctest
format: build
cd ${OUT}; make clangformat
clean:
rm -rf ${OUT} cmake-build-debug CMakeFiles
main: build
mpiexec ${OUT}/main -n 4096 -m 4096 -i g-rabenseifner-subgroup-4 -t 25
all: build
for impl in $(IMPLEMENTATIONS); do \
mpiexec ${OUT}/main -n 4096 -m 4096 -i $$impl; \
done