-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
33 lines (25 loc) · 1.14 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
.NOTPARALLEL:
MIN_WORKERS=1000
MAX_WORKERS=5000
STEP_WORKERS=1000
NUM_TRIALS=5
VERSIONS=v3_10 v3_34 v3_35 v3_36
default:
@echo "make build : will build the Docker containers and the simulators (do this first)"
@echo "make check : will run one experiment with all containers to check that makespans are the same"
@echo "make run : will run the experiment with whatever has been built last"
build: clean
@for version in ${VERSIONS} ; do \
echo "** Building for SimGrid $${version} **" ; \
echo docker build -t simgrid_$${version} -f Dockerfile_simgrid_$${version} . ; \
docker build -t simgrid_$${version} -f Dockerfile_simgrid_$${version} . ; \
mkdir build_simgrid_$${version} ; \
docker run -it --rm -v `pwd`:/home/simgrid -w /home/simgrid/build_simgrid_$${version}/ simgrid_$${version} cmake .. ; \
docker run -it --rm -v `pwd`:/home/simgrid -w /home/simgrid/build_simgrid_$${version}/ simgrid_$${version} make master_worker_$${version} ; \
done
check:
python3 ./check_makespans.py ${VERSIONS}
run:
python3 ./run_experiments.py ${MIN_WORKERS} ${MAX_WORKERS} ${STEP_WORKERS} ${NUM_TRIALS} ${VERSIONS}
clean:
/bin/rm -rf build_*