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
5450b33e
Commit
5450b33e
authored
Jan 16, 2025
by
iker_martin
Browse files
Minor corrections
parent
c6b3344d
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
5450b33e
#Ignore ini files
*.ini
#Ignore pkl files
*.pkl
#Ignore out files
*.out
#Ignore build files
/Codes/build/
...
...
@@ -7,4 +11,4 @@
/Codes/SAM/build
#Ignore Results files
/Results/*
/Results/*
*/
Codes/MaM/MAM_Configuration.c
View file @
5450b33e
...
...
@@ -230,7 +230,7 @@ void MAM_Check_configuration() {
MPI_Allreduce
(
&
mall
->
internode_group
,
&
global_internodes
,
1
,
MPI_INT
,
MPI_MAX
,
mall
->
comm
);
if
((
MAM_Contains_strat
(
MAM_SPAWN_STRATEGIES
,
MAM_STRAT_SPAWN_MULTIPLE
,
NULL
)
||
MAM_Contains_strat
(
MAM_SPAWN_STRATEGIES
,
MAM_STRAT_SPAWN_PARALLEL
,
NULL
)
)
&&
global_internodes
)
{
// Remove internode MPI_COMM_WORLDs
&&
global_internodes
&&
mall
->
numP
>
mall
->
numC
)
{
// Ensure when shrinking there are no internodes WORLDS left
MAM_Set_key_configuration
(
MAM_SPAWN_METHOD
,
MAM_SPAWN_BASELINE
,
NULL
);
}
...
...
Codes/MaM/spawn_methods/Strategy_Parallel.c
View file @
5450b33e
...
...
@@ -87,7 +87,6 @@ void parallel_strat_children_hypercube(Spawn_data spawn_data, Spawn_ports *spawn
int
actual_step
;
int
groups
,
init_nodes
;
MPI_Comm
newintracomm
,
*
spawn_comm
=
NULL
;
// TODO Comprobar si entrar en spawn solo si groups < numSources
qty_comms
=
0
;
group_id
=
mall
->
gid
;
...
...
Exec/BashScripts/getCores.sh
View file @
5450b33e
...
...
@@ -5,7 +5,7 @@
#====== Do not modify these values =======
partition
=
$1
hostlist
=
$(
sinfo
-hs
--partition
$partition
|
sed
's/ */:/g'
|
cut
-d
':'
-f
5
)
hostlist
=
$(
sinfo
-hs
--partition
$partition
|
sed
's/ */:/g'
|
rev |
cut
-d
':'
-f
1
| rev
)
basic_node
=
$(
scontrol show
hostname
$hostlist
|
paste
-d
,
-s
|
cut
-d
','
-f1
)
cores
=
$(
scontrol show node
$basic_node
|
grep
CPUTot |
cut
-d
'='
-f3
|
cut
-d
' '
-f1
)
echo
"
$cores
"
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