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
02447d0f
Commit
02447d0f
authored
Jan 08, 2024
by
iker_martin
Browse files
Removed unused array and added not shown configuration files in printed information
parent
2c244a3f
Changes
3
Show whitespace changes
Inline
Side-by-side
Codes/IOcodes/results.c
View file @
02447d0f
...
...
@@ -199,11 +199,6 @@ void print_global_results(results_data results, size_t resizes) {
printf
(
"%lf "
,
results
.
spawn_time
[
i
]);
}
printf
(
"
\n
T_spawn_real: "
);
for
(
i
=
0
;
i
<
resizes
;
i
++
)
{
printf
(
"%lf "
,
results
.
spawn_real_time
[
i
]);
}
printf
(
"
\n
T_SR: "
);
for
(
i
=
0
;
i
<
resizes
;
i
++
)
{
printf
(
"%lf "
,
results
.
sync_time
[
i
]);
...
...
@@ -238,7 +233,6 @@ void init_results_data(results_data *results, size_t resizes, size_t stages, siz
size_t
i
;
results
->
spawn_time
=
calloc
(
resizes
,
sizeof
(
double
));
results
->
spawn_real_time
=
calloc
(
resizes
,
sizeof
(
double
));
results
->
sync_time
=
calloc
(
resizes
,
sizeof
(
double
));
results
->
async_time
=
calloc
(
resizes
,
sizeof
(
double
));
results
->
malleability_time
=
calloc
(
resizes
,
sizeof
(
double
));
...
...
@@ -290,10 +284,6 @@ void free_results_data(results_data *results, size_t stages) {
free
(
results
->
spawn_time
);
results
->
spawn_time
=
NULL
;
}
if
(
results
->
spawn_real_time
!=
NULL
)
{
free
(
results
->
spawn_real_time
);
results
->
spawn_real_time
=
NULL
;
}
if
(
results
->
sync_time
!=
NULL
)
{
free
(
results
->
sync_time
);
results
->
sync_time
=
NULL
;
...
...
Codes/IOcodes/results.h
View file @
02447d0f
...
...
@@ -14,7 +14,7 @@ typedef struct {
size_t
iters_async
,
iter_index
,
iters_size
;
// Spawn, Thread, Sync, Async and Exec time
double
spawn_start
,
*
spawn_time
,
*
spawn_real_time
;
double
spawn_start
,
*
spawn_time
;
double
sync_end
,
*
sync_time
;
double
async_end
,
*
async_time
;
double
malleability_end
,
*
malleability_time
;
...
...
Codes/Main/configuration.c
View file @
02447d0f
...
...
@@ -200,8 +200,8 @@ void free_config_stage(iter_stage_t *stage, int *freed_ids, size_t *found_ids) {
void
print_config
(
configuration
*
user_config
)
{
if
(
user_config
!=
NULL
)
{
size_t
i
;
printf
(
"Config loaded: R=%zu, S=%zu, granularity=%d, SDR=%zu, ADR=%zu
\n
"
,
user_config
->
n_resizes
,
user_config
->
n_stages
,
user_config
->
granularity
,
user_config
->
sdr
,
user_config
->
adr
);
printf
(
"Config loaded: R=%zu, S=%zu, granularity=%d, SDR=%zu, ADR=%zu
, Rigid=%d, Capture_Method=%d
\n
"
,
user_config
->
n_resizes
,
user_config
->
n_stages
,
user_config
->
granularity
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
rigid_times
,
user_config
->
capture_method
);
for
(
i
=
0
;
i
<
user_config
->
n_stages
;
i
++
)
{
printf
(
"Stage %zu: PT=%d, T_stage=%lf, bytes=%d, T_capped=%d
\n
"
,
i
,
user_config
->
stages
[
i
].
pt
,
user_config
->
stages
[
i
].
t_stage
,
user_config
->
stages
[
i
].
real_bytes
,
user_config
->
stages
[
i
].
t_capped
);
...
...
@@ -232,8 +232,8 @@ void print_config_group(configuration *user_config, size_t grp) {
sons
=
user_config
->
groups
[
grp
+
1
].
procs
;
}
printf
(
"Config: granularity=%d, SDR=%zu, ADR=%zu
\n
"
,
user_config
->
granularity
,
user_config
->
sdr
,
user_config
->
adr
);
printf
(
"Config: granularity=%d, SDR=%zu, ADR=%zu
, Rigid=%d, Capture_Method=%d
\n
"
,
user_config
->
granularity
,
user_config
->
sdr
,
user_config
->
adr
,
user_config
->
rigid_times
,
user_config
->
capture_method
);
for
(
i
=
0
;
i
<
user_config
->
n_stages
;
i
++
)
{
printf
(
"Stage %zu: PT=%d, T_stage=%lf, bytes=%d, T_capped=%d
\n
"
,
i
,
user_config
->
stages
[
i
].
pt
,
user_config
->
stages
[
i
].
t_stage
,
user_config
->
stages
[
i
].
real_bytes
,
user_config
->
stages
[
i
].
t_capped
);
...
...
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