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
3a2c2de1
Commit
3a2c2de1
authored
Feb 11, 2022
by
iker_martin
Browse files
Hotfix del anterior commit, faltaban unos cambios
parent
7b214a6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Codes/malleability/ProcessDist.c
View file @
3a2c2de1
...
@@ -431,7 +431,7 @@ void processes_dist(char *argv, int numP_childs, int already_created, int type)
...
@@ -431,7 +431,7 @@ void processes_dist(char *argv, int numP_childs, int already_created, int type)
strcpy
(
slurm_data
->
cmd
,
argv
);
strcpy
(
slurm_data
->
cmd
,
argv
);
// GET NEW DISTRIBUTION
// GET NEW DISTRIBUTION
node_dist
(
type
,
numP_childs
,
already_created
,
&
procs_array
,
&
used_nodes
);
//TODO REFACTOR
node_dist
(
type
,
numP_childs
,
already_created
,
&
procs_array
,
&
used_nodes
);
slurm_data
->
qty_procs
=
numP_childs
;
slurm_data
->
qty_procs
=
numP_childs
;
/*
/*
...
@@ -448,16 +448,15 @@ void processes_dist(char *argv, int numP_childs, int already_created, int type)
...
@@ -448,16 +448,15 @@ void processes_dist(char *argv, int numP_childs, int already_created, int type)
*/
*/
// CREATE AND SET STRING HOSTFILE
// CREATE AND SET STRING HOSTFILE
fill_str_hostfile
(
procs_array
,
used_nodes
,
&
hostfile
);
//TODO REFACTOR
fill_str_hostfile
(
procs_array
,
used_nodes
,
&
hostfile
);
MPI_Info_create
(
&
(
slurm_data
->
info
));
MPI_Info_create
(
&
(
slurm_data
->
info
));
printf
(
"hosts %s
\n
"
,
hostfile
);
MPI_Info_set
(
slurm_data
->
info
,
"hosts"
,
hostfile
);
MPI_Info_set
(
slurm_data
->
info
,
"hosts"
,
hostfile
);
free
(
hostfile
);
free
(
hostfile
);
free
(
procs_array
);
free
(
procs_array
);
// Free JOB INFO
// Free JOB INFO
//slurm_free_job_info_msg(j_info);
//TODO REFACTOR
//slurm_free_job_info_msg(j_info);
}
}
/*
/*
...
...
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