Makefile 442 B

12345678910111213141516171819202122
  1. CC=gcc
  2. # XMPCC=xmpcc
  3. XMPCC=gcc
  4. LIBS=-L/usr/lib -lmpi
  5. INCL=-I /usr/lib/openmpi/include
  6. OBJP=elementary.o
  7. all: elementary
  8. elementary.o: elementary.c
  9. $(XMPCC) -c elementary.c
  10. elementary: $(OBJP)
  11. $(XMPCC) -o elementary $(OBJP) $(LIBS)
  12. run: elementary
  13. mpirun --mca orte_base_help_agregate 0 -host mpihead,mpinode1 -n 2 /usr/local/var/mpishare/glcs_slurm/step3/elementary
  14. clean:
  15. rm *.o elementary checkpoint_file.txt.* /tmp/output.txt