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
f8db4daf
Commit
f8db4daf
authored
Nov 11, 2022
by
iker_martin
Browse files
Anyadido fichero de Valgrind
parent
1d7fb389
Changes
1
Show whitespace changes
Inline
Side-by-side
Codes/runValgrind.sh
0 → 100644
View file @
f8db4daf
#!/bin/bash
#SBATCH -p P1
#SBATCH -N 1
#SBATCH --exclude=c01,c00,c02
dir
=
"/home/usuario/Documentos/malleability_benchmark"
codeDir
=
"/Codes"
nodelist
=
$SLURM_JOB_NODELIST
nodes
=
$SLURM_JOB_NUM_NODES
configFile
=
$1
outIndex
=
$2
echo
"MPICH"
#module load mpich-3.4.1-noucx
#export HYDRA_DEBUG=1
aux
=
$(
grep
"
\[
resize0
\]
"
-n
$1
|
cut
-d
":"
-f1
)
read
-r
ini fin
<<<
$(
echo
$aux
)
diff
=
$((
fin
-
ini
))
numP
=
$(
head
-
$fin
$1
|
tail
-
$diff
|
cut
-d
';'
-f1
|
grep
Procs |
cut
-d
'='
-f2
)
mpirun
-np
$numP
valgrind
--leak-check
=
full
--show-leak-kinds
=
all
--log-file
=
nc.vg.%p
$dir$codeDir
/build/a.out
$configFile
$outIndex
$nodelist
$nodes
rm
hostfile.o
$SLURM_JOB_ID
echo
"END RUN"
sed
-i
's/application called MPI_Abort(MPI_COMM_WORLD, -100) - process/shrink cleaning/g'
slurm-
$SLURM_JOB_ID
.out
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