Makefile 353 B

123456789101112131415161718192021
  1. CC=gcc
  2. XMPCC=xmpcc
  3. LIBS=-L/usr/lib -lmpi
  4. INCL=-I /usr/lib/openmpi/include
  5. OBJP=histo.o
  6. all: histo
  7. histo.o: histo.c
  8. $(XMPCC) -c histo.c
  9. histo: $(OBJP)
  10. $(XMPCC) -o histo $(OBJP) $(LIBS)
  11. run: histo
  12. mpirun --mca orte_base_help_agregate 0 -host mpihead -n 1 /usr/local/var/mpishare/GLCS-CM6-TDXMP/histo
  13. clean:
  14. rm *.o histo