-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
69 lines (56 loc) · 2.08 KB
/
Makefile
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
#
# Copyright (C) 2024, Northwestern University and Argonne National Laboratory
# See COPYRIGHT notice in top-level directory.
#
check_PROGRAMS = collective_write.py \
create_open.py \
fill_mode.py \
flexible_api.py \
get_info.py \
ghost_cell.py \
global_attribute.py \
hints.py \
put_varn_int.py \
transpose2D.py \
transpose.py \
put_var.py \
get_var.py
TESTS_ENVIRONMENT = export check_PROGRAMS="${check_PROGRAMS}";
TESTS_ENVIRONMENT += export PNETCDF_DIR="${PNETCDF_DIR}";
OUTPUT_DIR = _tmp_output
all:
check: ptest4
cd nonblocking && make check
cd Pytorch_DDP && make check
cd MNIST && make check
ptests: ptest3 ptest4 ptest8
cd nonblocking && make ptests
cd Pytorch_DDP && make ptests
cd MNIST && make ptests
ptest3:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " examples: Parallel testing on 3 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=3; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
ptest4:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " examples: Parallel testing on 4 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=4; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
ptest8:
@mkdir -p ${OUTPUT_DIR}
@echo "======================================================================"
@echo " examples: Parallel testing on 8 MPI processes"
@echo "======================================================================"
@${TESTS_ENVIRONMENT} export NPROC=8; ./parallel_run.sh ${OUTPUT_DIR} || exit 1
@echo ""
clean:
rm -rf ${OUTPUT_DIR}
cd nonblocking && make clean
cd Pytorch_DDP && make clean
cd MNIST && make clean
.PHONY: all check ptests ptest3 ptest4 ptest8 clean