12345678910111213141516171819202122232425262728 |
- CC=gcc
- XMPCC=xmpcc
- LIBS=-L/usr/lib -lmpi
- INCL=-I /usr/lib/openmpi/include
- OBJM=manager-spawn.o
- OBJW=init.o
- all: manager worker_program
- manager-spawn.o: manager-spawn.c
- $(CC) -c $(INCL) manager-spawn.c
- init.o: init.c
- $(XMPCC) -c init.c
- manager: $(OBJM)
- $(CC) -o manager $(OBJM) $(LIBS)
- worker_program: $(OBJW)
- $(XMPCC) -o worker_program $(OBJW) $(LIBS)
- run: worker_program
- cp worker_program /usr/local/var/mpishare
- mpirun -host mpihead,mpinode1,mpinode2,mpinode3 -n 4 /usr/local/var/mpishare/worker_program
-
- clean:
- rm *.o manager worker_program
|