mpihello_c:mpihello.c
mpicc -o $@ $<
anneau_c:anneau.c
mpicc -o $@ $<
mpihello_f:mpihello.f
mpif90 -o $@ $<
test: mpihello_c mpihello_f anneau_c
echo "eclssgh0" > machinelist.txt
echo "eclssgh0" >> machinelist.txt
echo "eclssgh0" >> machinelist.txt
echo "eclssgh0" >> machinelist.txt
echo "mclssgh1" >> machinelist.txt
echo "mclssgh1" >> machinelist.txt
echo "mclssgh1" >> machinelist.txt
echo "mclssgh1" >> machinelist.txt
mpirun -machinefile machinelist.txt -np 8 ./mpihello_c
mpirun -machinefile machinelist.txt -np 8 ./mpihello_f
mpirun -machinefile machinelist.txt -np 8 ./anneau_c
all: mpihello_c mpihello_f test anneau
clean:
rm machinelist.txt
mpihello.html:mpihello.c mpihello.f Makefile machinelist.txt
enscript -E --color -w html -o mpihello.html mpihello.c mpihello.f Makefile machinelist.txt anneau.c