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
6e2e94a5
Commit
6e2e94a5
authored
Jun 04, 2024
by
iker_martin
Browse files
Bugfix for initial configuration values. In addition, a compilation error fixed.
parent
af0082c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Codes/malleability/MAM_Configuration.c
View file @
6e2e94a5
...
...
@@ -163,6 +163,11 @@ void MAM_Init_configuration() {
MPI_Abort
(
MPI_COMM_WORLD
,
-
50
);
}
mall_conf
->
spawn_method
=
MAM_STRAT_CLEAR_VALUE
;
mall_conf
->
spawn_strategies
=
MAM_STRAT_CLEAR_VALUE
;
mall_conf
->
red_method
=
MAM_STRAT_CLEAR_VALUE
;
mall_conf
->
red_strategies
=
MAM_STRAT_CLEAR_VALUE
;
configSettings
[
MAM_SPAWN_METHOD
].
value
=
&
mall_conf
->
spawn_method
;
configSettings
[
MAM_SPAWN_STRATEGIES
].
value
=
&
mall_conf
->
spawn_strategies
;
configSettings
[
MAM_PHYSICAL_DISTRIBUTION
].
value
=
&
mall_conf
->
spawn_dist
;
...
...
Codes/malleability/spawn_methods/ProcessDist.c
View file @
6e2e94a5
...
...
@@ -133,7 +133,7 @@ void node_dist(Spawn_data spawn_data, int **qty, int *used_nodes, int *total_spa
* FIXME Tener en cuenta localizacion de procesos ya creados (already_created)
*/
void
spread_dist
(
Spawn_data
spawn_data
,
int
*
used_nodes
,
int
*
procs
)
{
int
i
,
tamBl
;
int
i
,
tamBl
,
remainder
;
*
used_nodes
=
mall
->
num_nodes
;
tamBl
=
spawn_data
.
target_qty
/
*
used_nodes
;
...
...
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