You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
627 B

5 years ago
all: config install log
5 years ago
DIRhosts=/home/ubuntu/hosts
DIR=/home/ubuntu/
swarmlab-getworkers > $(DIRhosts)
5 years ago
5 years ago
helloworld:
@mpicc -o $(DIR)/mpi_hello_world ./mpi_hello_world.c ; \
cat $DIRhosts | while read -r line ; \
do \
scp $(DIR)/mpi_hello_world ubuntu@$(line):$(DIR)/mpi_hello_world ; \
done \
mpirun -n 10 -f $(DIRhosts) $(DIR)/mpi_hello_world 2>&1 | tee /tmp/output.log ; \
5 years ago
5 years ago
cpi:
@mpicc -o $(DIR)/cpi ./cpi.c ; \
cat $(DIRhosts) | while read -r line ; \
do \
scp $(DIR)/cpi ubuntu@$(line):$(DIR)/cpi.c ; \
done \
mpirun -n 10 -f $(DIRhosts) $(DIR)/cpi 2>&1 | tee /tmp/output.log ; \
5 years ago