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
00759da4
Commit
00759da4
authored
Aug 14, 2024
by
iker_martin
Browse files
Fixed error when allocating memory for executable names during spawn
parent
7a64506d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Codes/MaM/spawn_methods/ProcessDist.c
View file @
00759da4
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
void
node_dist
(
Spawn_data
spawn_data
,
int
**
qty
,
int
*
used_nodes
,
int
*
total_spawns
);
void
node_dist
(
Spawn_data
spawn_data
,
int
**
qty
,
int
*
used_nodes
,
int
*
total_spawns
);
void
spread_dist
(
Spawn_data
spawn_data
,
int
*
used_nodes
,
int
*
procs
);
void
spread_dist
(
Spawn_data
spawn_data
,
int
*
used_nodes
,
int
*
procs
);
void
compact_dist
(
Spawn_data
spawn_data
,
int
*
used_nodes
,
int
*
procs
);
void
compact_dist
(
Spawn_data
spawn_data
,
int
*
used_nodes
,
int
*
procs
);
void
set_spawn_cmd
(
size_t
nodes
,
Spawn_data
*
spawn_data
);
void
set_spawn_cmd
(
Spawn_data
*
spawn_data
);
void
generate_info_string
(
char
*
nodelist
,
int
*
procs_array
,
size_t
nodes
,
Spawn_data
*
spawn_data
);
void
generate_info_string
(
char
*
nodelist
,
int
*
procs_array
,
size_t
nodes
,
Spawn_data
*
spawn_data
);
void
generate_multiple_info_string
(
char
*
nodelist
,
int
*
procs_array
,
size_t
nodes
,
Spawn_data
*
spawn_data
);
void
generate_multiple_info_string
(
char
*
nodelist
,
int
*
procs_array
,
size_t
nodes
,
Spawn_data
*
spawn_data
);
...
@@ -73,7 +73,7 @@ void processes_dist(Spawn_data *spawn_data) {
...
@@ -73,7 +73,7 @@ void processes_dist(Spawn_data *spawn_data) {
generate_info_string
(
mall
->
nodelist
,
procs_array
,
used_nodes
,
spawn_data
);
generate_info_string
(
mall
->
nodelist
,
procs_array
,
used_nodes
,
spawn_data
);
}
}
#endif
#endif
set_spawn_cmd
(
used_nodes
,
spawn_data
);
set_spawn_cmd
(
spawn_data
);
free
(
procs_array
);
free
(
procs_array
);
}
}
...
@@ -201,8 +201,8 @@ void compact_dist(Spawn_data spawn_data, int *used_nodes, int *procs) {
...
@@ -201,8 +201,8 @@ void compact_dist(Spawn_data spawn_data, int *used_nodes, int *procs) {
* comando.
* comando.
*
*
*/
*/
void
set_spawn_cmd
(
size_t
nodes
,
Spawn_data
*
spawn_data
)
{
void
set_spawn_cmd
(
Spawn_data
*
spawn_data
)
{
size_
t
index
=
0
;
in
t
index
=
0
;
char
*
cmd_aux
;
char
*
cmd_aux
;
switch
(
mall_conf
->
external_usage
)
{
switch
(
mall_conf
->
external_usage
)
{
case
MAM_USE_VALGRIND
:
case
MAM_USE_VALGRIND
:
...
@@ -216,7 +216,7 @@ void set_spawn_cmd(size_t nodes, Spawn_data *spawn_data) {
...
@@ -216,7 +216,7 @@ void set_spawn_cmd(size_t nodes, Spawn_data *spawn_data) {
break
;
break
;
}
}
for
(;
index
<
node
s
;
index
++
)
{
for
(;
index
<
spawn_data
->
total_spawn
s
;
index
++
)
{
spawn_data
->
sets
[
index
].
cmd
=
cmd_aux
;
spawn_data
->
sets
[
index
].
cmd
=
cmd_aux
;
}
}
}
}
...
...
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