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
b4c7f177
Commit
b4c7f177
authored
Jul 08, 2021
by
iker_martin
Browse files
WIP. Del anterior commit, que no se habian añadido
parent
d65df059
Changes
2
Show whitespace changes
Inline
Side-by-side
Codes/IOcodes/read_ini.c
View file @
b4c7f177
...
...
@@ -136,8 +136,8 @@ void free_config(configuration *user_config) {
void
print_config
(
configuration
*
user_config
,
int
grp
)
{
if
(
user_config
!=
NULL
)
{
int
i
;
printf
(
"Config loaded: resizes=%d, matrix=%d, sdr=%d, adr=%d, aib=%d, time=%f || grp=%d
\n
"
,
user_config
->
resizes
,
user_config
->
matrix_tam
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
aib
,
user_config
->
general_time
,
grp
);
printf
(
"Config loaded: resizes=%d, matrix=%d,
comm_tam=%d,
sdr=%d, adr=%d, aib=%d, time=%f || grp=%d
\n
"
,
user_config
->
resizes
,
user_config
->
matrix_tam
,
user_config
->
comm_tam
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
aib
,
user_config
->
general_time
,
grp
);
for
(
i
=
0
;
i
<
user_config
->
resizes
;
i
++
)
{
printf
(
"Resize %d: Iters=%d, Procs=%d, Factors=%f, Phy=%d
\n
"
,
i
,
user_config
->
iters
[
i
],
user_config
->
procs
[
i
],
user_config
->
factors
[
i
],
user_config
->
phy_dist
[
i
]);
...
...
@@ -161,8 +161,8 @@ void print_config_group(configuration *user_config, int grp) {
sons
=
user_config
->
procs
[
grp
+
1
];
}
printf
(
"Config: matrix=%d, sdr=%d, adr=%d, aib=%d time=%f
\n
"
,
user_config
->
matrix_tam
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
aib
,
user_config
->
general_time
);
printf
(
"Config: matrix=%d,
comm_tam=%d,
sdr=%d, adr=%d, aib=%d time=%f
\n
"
,
user_config
->
matrix_tam
,
user_config
->
comm_tam
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
aib
,
user_config
->
general_time
);
printf
(
"Config Group: iters=%d, factor=%f, phy=%d, procs=%d, parents=%d, sons=%d
\n
"
,
user_config
->
iters
[
grp
],
user_config
->
factors
[
grp
],
user_config
->
phy_dist
[
grp
],
user_config
->
procs
[
grp
],
parents
,
sons
);
}
...
...
Codes/Main/Main.c
View file @
b4c7f177
...
...
@@ -22,7 +22,7 @@ int check_redistribution(int iter, MPI_Request **comm_req);
int
end_redistribution
(
int
iter
);
int
thread_creation
();
int
thread_check
();
int
thread_check
(
int
iter
);
void
*
thread_async_work
(
void
*
void_arg
);
void
iterate
(
double
*
matrix
,
int
n
,
int
async_comm
);
...
...
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