Skip to content

Commit

Permalink
updated to local mpi version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanalesmayo authored Jan 15, 2017
1 parent 78cbbf7 commit de116d0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions comp_run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

# 1st param: MPI -n and C program first parameter
# 2nd param: MPI --hostfile
# 3rd param: {file}.c
# 4th param: OMP_NUM_THREADS
# Remaining params: C program remaining parameters
echo "mpicc -fopenmp $3.c -o $3.o -lm"
mpicc -fopenmp $3.c -o $3.o -lm
echo "mpirun -n $1 --hostfile $2 $3.o $4 $1 ${@:5}"
mpirun -n $1 --hostfile $2 $3.o $4 $1 ${@:5}
#!/bin/bash

# 1st param: MPI -n and C program first parameter
# 2nd param: MPI --hostfile
# 3rd param: {file}.c
# 4th param: OMP_NUM_THREADS
# Remaining params: C program remaining parameters
echo "/usr/local/openmpi/bin/mpicc -fopenmp $3.c -o $3.o -lm"
/usr/local/openmpi/bin/mpicc -fopenmp $3.c -o $3.o -lm
echo "/usr/local/openmpi/bin/mpirun -n $1 --hostfile $2 $3.o $4 $1 ${@:5}"
/usr/local/openmpi/bin/mpirun -n $1 --hostfile $2 $3.o $4 $1 ${@:5}

0 comments on commit de116d0

Please sign in to comment.