Commit 0c72667b authored by Philipp Arras's avatar Philipp Arras
Browse files

Tweak Makefile

parent 65717238
Pipeline #109587 passed with stages
in 14 minutes and 22 seconds
pre := MPLBACKEND=agg MKL_NUM_THREADS=1 OMP_NUM_THREADS=1
.PHONY: m87 blobs disk crescent ehtcrescent ehtdisk sim1 sim2 .PHONY: m87 blobs disk crescent ehtcrescent ehtdisk sim1 sim2
# Compute starting position for movie pre := MPLBACKEND=agg MKL_NUM_THREADS=1 OMP_NUM_THREADS=1
initial.h5 :
ifdef VLBI_MPI_TASKS ifdef VLBI_MPI_TASKS
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 movie_start.py python = $(pre) mpirun -np $(VLBI_MPI_TASKS) python3
else else
$(pre) python3 movie_start.py python = $(pre) python3
endif endif
# Movie reconstruction initial.h5 :
$(python) movie_start.py
m87 : initial.h5 m87 : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py m87 initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py m87 initial.h5
else
$(pre) python3 reconstruction.py m87 initial.h5
endif
blobs : initial.h5 blobs : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py blobs initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py blobs initial.h5
else
$(pre) python3 reconstruction.py blobs initial.h5
endif
disk : initial.h5 disk : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py disk initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py disk initial.h5
else
$(pre) python3 reconstruction.py disk initial.h5
endif
crescent : initial.h5 crescent : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py crescent initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py crescent initial.h5
else
$(pre) python3 reconstruction.py crescent initial.h5
endif
ehtcrescent : initial.h5 ehtcrescent : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py ehtcrescent initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py ehtcrescent initial.h5
else
$(pre) python3 reconstruction.py ehtcrescent initial.h5
endif
ehtdisk : initial.h5 ehtdisk : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py ehtdisk initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py ehtdisk initial.h5
else
$(pre) python3 reconstruction.py ehtdisk initial.h5
endif
sim1 : initial.h5 sim1 : initial.h5
ifdef VLBI_MPI_TASKS $(python) reconstruction.py sim1 initial.h5
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py sim1 initial.h5
else
$(pre) python3 reconstruction.py sim1 initial.h5
endif
sim2 : initial.h5
ifdef VLBI_MPI_TASKS
$(pre) mpirun -np $(VLBI_MPI_TASKS) python3 reconstruction.py sim2 initial.h5
else
$(pre) python3 reconstruction.py sim2 initial.h5
endif
sim2 : initial.h5
$(python) reconstruction.py sim2 initial.h5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment