Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
2b47c1a4
Commit
2b47c1a4
authored
Jul 10, 2011
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ModSim ass4 taddeus: Updated MPI scripts.
parent
dd69ac78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
modsim/ass4_taddeus/vibstring/benchmark.sh
modsim/ass4_taddeus/vibstring/benchmark.sh
+0
-3
modsim/ass4_taddeus/vibstring/par.sh
modsim/ass4_taddeus/vibstring/par.sh
+9
-3
No files found.
modsim/ass4_taddeus/vibstring/benchmark.sh
View file @
2b47c1a4
...
...
@@ -12,9 +12,6 @@ args="sinus 10000 1 $dx 1 2"
# Execute sequential program
/usr/bin/time
-f
"%e"
-o
$FILE
./seq
$args
# Clear results file
#echo "" > $FILE
# Execute parallel program for different numbers of nodes
for
((
i
=
2
;
i <
=
$1
;
i +
=
$2
))
;
do
for
j
in
`
seq
$REPEAT
`
;
do
...
...
modsim/ass4_taddeus/vibstring/par.sh
View file @
2b47c1a4
...
...
@@ -3,8 +3,14 @@ if [ $# -lt 7 ]; then
echo
"Usage: bash
$0
NUM_PROCESSES INIT_METHOD TIME_STEPS LENGTH DX TAU N|XP"
exit
1
fi
mpirun
-np
${
1
-4
}
./par
${
@
:2:
$#}
#mpirun -np
${
1
-4
}
\
# --hostfile ~/.mpirun.machines ./par
${
@
:2:
$#}
# Build hosts string
hosts
=
"edu20,edu21"
for
i
in
`
seq
3
$1
`
;
do
hosts
=
"
$hosts
,edu02
`
expr
$i
- 1
`
"
done
#mpirun -np ${1-4} ./par ${@:2:$#}
mpirun
-mca
plm_rsh_agent /usr/bin/rsh
-n
$1
-host
$hosts
./par
${
@
:2:
$#}
#mpirun -np
${
1
-4
}
--mca pls_rsh_agent rsa \
# --hostfile ~/.mpirun.machines ./par
${
@
:2:
$#}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment