Fixed makefile and added start mpirun script.

parent ee14bc60
CFLAGS +=-std=c99 -Wall -Wextra -g -O2 CFLAGS +=-std=c99 -Wall -Wextra -g -O2 -pthread
LDFLAGS+=-lmpi LDFLAGS+=-pthread -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic \
-lnsl -lutil -lm -ldl
MAIN = main MAIN = main
OFILES = interval.o slave.o master.o main.o OFILES = interval.o slave.o master.o main.o
......
#!/bin/sh
NUM_PROCESSES=4
RSH_AGENT=rsh
HOSTS=localhost
PROGRAM_EXEC=main
mpirun -np $NUM_PROCESSES -H $HOSTS $PROGRAM_EXEC
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment