-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78cbbf7
commit de116d0
Showing
1 changed file
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |