Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Iker Martín Álvarez
Proteo
Commits
d79aefaf
Commit
d79aefaf
authored
Jun 16, 2021
by
iker_martin
Browse files
Pequeños cambios sobre la ejecución de ficheros
parent
f0c75a2c
Changes
2
Show whitespace changes
Inline
Side-by-side
Codes/Main/Main.c
View file @
d79aefaf
...
...
@@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
int
numP
,
myId
,
res
;
int
req
;
MPI_Init_thread
(
&
argc
,
&
argv
,
MPI_THREAD_
MULTIP
LE
,
&
req
);
MPI_Init_thread
(
&
argc
,
&
argv
,
MPI_THREAD_
SING
LE
,
&
req
);
MPI_Comm_size
(
MPI_COMM_WORLD
,
&
numP
);
MPI_Comm_rank
(
MPI_COMM_WORLD
,
&
myId
);
...
...
Exec/arrayRun.sh
View file @
d79aefaf
#!/bin/bash
#SBATCH --exclude=n[06-07]
#SBATCH --exclude=n[06-07]
,c01
dir
=
"/home/martini/malleability_benchmark"
codeDir
=
"/Codes"
...
...
@@ -13,7 +13,8 @@ procs_parents=$3
procs_sons
=
$4
percs_array
=(
0 25 50 75 100
)
echo
"START TEST init=
$i
"
aux
=
$((
$i
+
1
))
echo
"START TEST init=
$aux
"
for
adr_perc
in
"
${
percs_array
[@]
}
"
do
...
...
@@ -28,13 +29,11 @@ do
echo
"EXEC
$procs_parents
--
$procs_sons
--
$adr_perc
--
$ibarrier_use
--
$phy_dist
-- RUN
$i
"
touch test
$i
for
index
in
1 2 3
do
echo
"a"
#numP=$(bash $dir$codeDir/recordMachinefile.sh $config_file) # Crea el fichero hostfile
#mpirun -f hostfile.o$SLURM_JOB_ID -np $numP $dir$codeDir/a.out $config_file $i
#rm hostfile.o$SLURM_JOB_ID
numP
=
$(
bash
$dir$codeDir
/recordMachinefile.sh
$config_file
)
# Crea el fichero hostfile
mpirun
-f
hostfile.o
$SLURM_JOB_ID
-np
$numP
$dir$codeDir
/a.out
$config_file
$i
rm
hostfile.o
$SLURM_JOB_ID
done
done
done
...
...
Write
Preview
Supports
Markdown
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