Skip to content

Commit

Permalink
first parallel version
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanalesmayo authored Dec 30, 2016
1 parent e0753b3 commit 4539ef3
Show file tree
Hide file tree
Showing 4 changed files with 579 additions and 0 deletions.
9 changes: 9 additions & 0 deletions comp_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
# 1st param: MPI -n
# 2nd param: MPI --hostfile
# 3rd param: {file}.c
# Remaining params: C program parameters
echo "mpicc $3.c -o $3.o -lm"
mpicc $3.c -o $3.o -lm
echo "mpirun -n $1 --hostfile $2 $3.o $1 ${@:4}"
mpirun -n $1 --hostfile $2 $3.o $1 ${@:4}
1 change: 1 addition & 0 deletions hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.3.16.43 slots=16 max_slots=64
Loading

0 comments on commit 4539ef3

Please sign in to comment.