|
@@ -0,0 +1,20 @@
|
|
|
+CC=gcc
|
|
|
+XMPCC=xmpcc
|
|
|
+LIBS=-L/usr/lib -lmpi
|
|
|
+INCL=-I /usr/lib/openmpi/include
|
|
|
+
|
|
|
+OBJP=para_hello_world.o
|
|
|
+
|
|
|
+all: para_hello_world
|
|
|
+
|
|
|
+para_hello_world.o: para_hello_world.c
|
|
|
+ $(XMPCC) -c para_hello_world.c -fopenmp
|
|
|
+
|
|
|
+para_hello_world: $(OBJP)
|
|
|
+ $(XMPCC) -o para_hello_world $(OBJP) $(LIBS)
|
|
|
+
|
|
|
+run: para_hello_world
|
|
|
+ mpirun --mca orte_base_help_agregate 0 -x OMP_NUM_THREADS=4 -host mpihead,mpinode1 -n 2 /usr/local/var/mpishare/GLCS-CM9-TDXMP/para_hello_world
|
|
|
+
|
|
|
+clean:
|
|
|
+ rm *.o para_hello_world
|