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
d8f1ea5e
Commit
d8f1ea5e
authored
Mar 09, 2023
by
iker_martin
Browse files
Minor errors fixed
parent
a74ee030
Changes
3
Hide whitespace changes
Inline
Side-by-side
Exec/Extrae/trace_worker.sh
0 → 100755
View file @
d8f1ea5e
#!/bin/bash
dir
=
"/home/martini/malleability_benchmark"
codeDir
=
"/Codes/build"
export
EXTRAE_CONFIG_FILE
=
extrae.xml
export
LD_PRELOAD
=
$EXTRAE_HOME
/lib/libmpitrace.so
$dir$codeDir
/./a.out
Exec/runAll.sh
100644 → 100755
View file @
d8f1ea5e
...
...
@@ -25,26 +25,21 @@ internalIndex=$(echo $files | tr -cd ' ' | wc -c)
index
=
$((
0
))
for
config_file
in
$files
do
# FIXME Tener en cuenta que puede ser más de un resize
aux
=
$(
grep
"
\[
resize0
\]
"
-n
$config_file
|
cut
-d
":"
-f1
)
ini
=
$(
echo
$aux
|
cut
-d
" "
-f1
)
fin
=
$(
echo
$aux
|
cut
-d
" "
-f2
)
diff
=
$((
fin
-
ini
))
numP1
=
$(
head
-
$fin
$config_file
|
tail
-
$diff
|
cut
-d
';'
-f1
|
grep
Procs |
cut
-d
'='
-f2
)
aux
=
$(
grep
"
\[
resize1
\]
"
-n
$config_file
|
cut
-d
":"
-f1
)
ini
=
$(
echo
$aux
|
cut
-d
" "
-f1
)
fin
=
$(
echo
$aux
|
cut
-d
" "
-f2
)
diff
=
$((
fin
-
ini
))
numP2
=
$(
head
-
$fin
$config_file
|
tail
-
$diff
|
cut
-d
';'
-f1
|
grep
Procs |
cut
-d
'='
-f2
)
echo
"------------------------------------------run np=
$numP1
"
if
[
$numP1
-lt
$numP2
]
then
numP1
=
$numP2
fi
node_qty
=
$((
$numP1
/
$cores
))
max_numP
=
-1
total_groups
=
$(
grep
Total_Resizes
$config_file
|
cut
-d
'='
-f2
)
for
((
j
=
0
;
j<total_groups
;
j++
))
;
do
resize_info
=
$(
grep
"
\[
resize
$j
\]
"
-n
$config_file
|
cut
-d
":"
-f1
)
first_line
=
$(
echo
$resize_info
|
cut
-d
" "
-f1
)
last_line
=
$(
echo
$resize_info
|
cut
-d
" "
-f2
)
range_lines
=
$((
last_line
-
first_line
))
numP
=
$(
head
-
$last_line
$config_file
|
tail
-
$range_lines
|
cut
-d
';'
-f1
|
grep
Procs |
cut
-d
'='
-f2
)
if
[
"
$numP
"
-gt
"
$max_numP
"
]
;
then
max_numP
=
$numP
fi
done
node_qty
=
$((
$max_numP
/
$cores
))
if
[
$node_qty
-eq
0
]
then
node_qty
=
1
...
...
Exec/singleRun.sh
View file @
d8f1ea5e
...
...
@@ -55,7 +55,7 @@ fi
#1 - Obtain maximum number of processes for the run
max_numP
=
-1
total_groups
=
$(
grep
Total_Resizes config
2.ini
|
cut
-d
'='
-f2
)
total_groups
=
$(
grep
Total_Resizes
$
config
_file
|
cut
-d
'='
-f2
)
for
((
j
=
0
;
j<total_groups
;
j++
))
;
do
resize_info
=
$(
grep
"
\[
resize
$j
\]
"
-n
$config_file
|
cut
-d
":"
-f1
)
...
...
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