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
c73355a4
Commit
c73355a4
authored
Jul 10, 2011
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ModSim ass4 taddeus: Worked on Ring report.
parent
d5bfd07b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
12 deletions
+20
-12
modsim/ass4_taddeus/ring/report/report.tex
modsim/ass4_taddeus/ring/report/report.tex
+2
-2
modsim/ass4_taddeus/ring/ring.c
modsim/ass4_taddeus/ring/ring.c
+1
-1
modsim/ass4_taddeus/ring/ring.sh
modsim/ass4_taddeus/ring/ring.sh
+16
-8
modsim/ass4_taddeus/vibstring/par.sh
modsim/ass4_taddeus/vibstring/par.sh
+1
-1
No files found.
modsim/ass4_taddeus/ring/report/report.tex
View file @
c73355a4
...
...
@@ -89,8 +89,8 @@ getallen als uitvoer geven, bedoeld als invoer voor het programma
berekent.
\emph
{
plot.py
}
heeft als optionele parameter een bestandsnaam om de
grafiek in op de slaan. Het gebruik van het programma is als volgt bedoeld:
\begin{verbatim}
$
sh ring.sh | python
plot.py # Laat alleen een grafiek zien
$
sh ring.sh | python
plot.py results.pdf # Slaat de grafiek ook op
$
.
/
ring.sh
6
| .
/
plot.py # Laat alleen een grafiek zien
$
./ring.sh 6 | ./
plot.py results.pdf # Slaat de grafiek ook op
\end{verbatim}
\section
{
Resultaten
}
...
...
modsim/ass4_taddeus/ring/ring.c
View file @
c73355a4
...
...
@@ -3,7 +3,7 @@
#include <math.h>
#include <mpi.h>
//
#define DEBUG
#define DEBUG
#define LOOP 100 // Number of different message sizes
#define STRIDE 10000 // Difference between the message sizes
...
...
modsim/ass4_taddeus/ring/ring.sh
View file @
c73355a4
#!/bin/sh
NUM_PROCESSES
=
${
1
-4
}
# Default: 4 processes
RSH_AGENT
=
rsh
MPI_HOSTFILE
=
~/.mpirun.machines
PROGRAM_EXEC
=
ring
#!/bin/
ba
sh
if
[
$#
-lt
1
]
;
then
echo
"Usage: bash
$0
NUM_PROCESSES"
exit
1
fi
mpirun
-np
$NUM_PROCESSES
$PROGRAM_EXEC
#mpirun -np $NUM_PROCESSES --mca pls_rsh_agent $RSH_AGENT \
# --hostfile $MPI_HOSTFILE $PROGRAM_EXEC
# Build hosts string
START
=
16
cur
=
`
expr
$START
+ 1
`
hosts
=
"edu0
$START
,edu0
$cur
"
for
i
in
`
seq
3
$1
`
;
do
cur
=
`
expr
$cur
+ 1
`
hosts
=
"
$hosts
,edu0
$cur
"
done
mpirun
-mca
plm_rsh_agent /usr/bin/rsh
-n
$1
-host
$hosts
./ring
#mpirun -np $1 ./ring
modsim/ass4_taddeus/vibstring/par.sh
View file @
c73355a4
...
...
@@ -14,4 +14,4 @@ for i in `seq 3 $1`; do
done
mpirun
-mca
plm_rsh_agent /usr/bin/rsh
-n
$1
-host
$hosts
./par
${
@
:2:
$#}
#mpirun -np
$
{
1
-4
}
./par
${
@
:2:
$#}
#mpirun -np
$
1
./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