Assignments for parallel processing using OpenMPI.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
276 B

#!/bin/bash
# -Wno-unused-variable
binFolder="bin"
binFile="$binFolder/$1"
mkdir -p "$binFolder/"
#mpicc -Wno-unused-variable -Wno-unused-but-set-variable -Wall -O0 "$1.c" common.c -o "$binFile"
mpicc -Wall -O0 "$1.c" common.c -o "$binFile"
mpirun -v -np "$2" "$binFile"