Commit 978d5344 authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim: Added some basic files.

parent d7f99ea3
CC=mpicc
CFLAGS=-Wall -Wextra -pedantic -std=c99 -O2
all: ring
ring: ring.o
clean:
rm -vf *.o ring
#include <stdlib.h>
#include <stdio.h>
#include <mpi.h>
int main(int argc, char **argv) {
MPI_Init(&argc, &argv);
MPI_Finalize();
}
#!/bin/sh
NUM_PROCESSES=4
RSH_AGENT=rsh
MPI_HOSTFILE=~/.mpirun.machines
PROGRAM_EXEC=ring
mpirun -np $NUM_PROCESSES --mca pls_rsh_agent $RSH_AGENT \
--hostfile $MPI_HOSTFILE $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