Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
La programmation parallèle pour les gens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
baptiste.coudray
La programmation parallèle pour les gens
Commits
06818588
Verified
Commit
06818588
authored
3 years ago
by
baptiste.coudray
Browse files
Options
Downloads
Patches
Plain Diff
Updated bench
parent
23d564b9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
elementary/benchmark/main.c
+5
-3
5 additions, 3 deletions
elementary/benchmark/main.c
game_of_life/benchmark/main.c
+5
-3
5 additions, 3 deletions
game_of_life/benchmark/main.c
lattice_boltzmann/main.c
+5
-3
5 additions, 3 deletions
lattice_boltzmann/main.c
with
15 additions
and
9 deletions
elementary/benchmark/main.c
+
5
−
3
View file @
06818588
...
...
@@ -30,7 +30,9 @@ void init_chunk_elems(chunk_info_t *ci) {
}
double
compute_next_chunk_elems
(
struct
dispatch_context
*
dc
,
struct
futhark_context
*
fc
,
chunk_info_t
*
ci
)
{
double
start0
=
MPI_Wtime
();
struct
futhark_i8_1d
*
fut_chunk_with_envelope
=
get_chunk_with_envelope
(
dc
,
fc
,
1
,
futhark_new_i8_1d
);
double
finish0
=
MPI_Wtime
();
// Warmup
struct
futhark_i8_1d
*
fut_next_chunk_elems
;
...
...
@@ -38,7 +40,7 @@ double compute_next_chunk_elems(struct dispatch_context *dc, struct futhark_cont
futhark_context_sync
(
fc
);
futhark_free_i8_1d
(
fc
,
fut_next_chunk_elems
);
double
start
=
MPI_Wtime
();
double
start
1
=
MPI_Wtime
();
for
(
int
i
=
0
;
i
<
N_ITERATIONS
;
++
i
)
{
futhark_entry_next_chunk_elems
(
fc
,
&
fut_next_chunk_elems
,
fut_chunk_with_envelope
);
futhark_context_sync
(
fc
);
...
...
@@ -46,10 +48,10 @@ double compute_next_chunk_elems(struct dispatch_context *dc, struct futhark_cont
}
futhark_values_i8_1d
(
fc
,
fut_next_chunk_elems
,
ci
->
data
);
futhark_context_sync
(
fc
);
double
finish
=
MPI_Wtime
();
double
finish
1
=
MPI_Wtime
();
futhark_free_i8_1d
(
fc
,
fut_chunk_with_envelope
);
return
finish
-
start
;
return
(
finish
0
-
start
0
)
+
(
finish1
-
start1
)
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
This diff is collapsed.
Click to expand it.
game_of_life/benchmark/main.c
+
5
−
3
View file @
06818588
...
...
@@ -34,14 +34,16 @@ void init_chunk_board(chunk_info_t *ci) {
}
double
compute_next_chunk_board
(
struct
dispatch_context
*
dc
,
struct
futhark_context
*
fc
,
chunk_info_t
*
ci
)
{
double
start0
=
MPI_Wtime
();
struct
futhark_i8_2d
*
fut_chunk_with_envelope
=
get_chunk_with_envelope
(
dc
,
fc
,
1
,
futhark_new_i8_2d
);
double
finish0
=
MPI_Wtime
();
struct
futhark_i8_2d
*
fut_next_chunk_board
;
futhark_entry_next_chunk_board
(
fc
,
&
fut_next_chunk_board
,
fut_chunk_with_envelope
);
futhark_context_sync
(
fc
);
futhark_free_i8_2d
(
fc
,
fut_next_chunk_board
);
double
start
=
MPI_Wtime
();
double
start
1
=
MPI_Wtime
();
for
(
int
i
=
0
;
i
<
N_ITERATIONS
;
++
i
)
{
futhark_entry_next_chunk_board
(
fc
,
&
fut_next_chunk_board
,
fut_chunk_with_envelope
);
futhark_context_sync
(
fc
);
...
...
@@ -49,10 +51,10 @@ double compute_next_chunk_board(struct dispatch_context *dc, struct futhark_cont
}
futhark_values_i8_2d
(
fc
,
fut_next_chunk_board
,
ci
->
data
);
futhark_context_sync
(
fc
);
double
finish
=
MPI_Wtime
();
double
finish
1
=
MPI_Wtime
();
futhark_free_i8_2d
(
fc
,
fut_chunk_with_envelope
);
return
finish
-
start
;
return
(
finish
0
-
start
0
)
+
(
finish1
-
start1
)
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
This diff is collapsed.
Click to expand it.
lattice_boltzmann/main.c
+
5
−
3
View file @
06818588
...
...
@@ -42,7 +42,9 @@ convert_chunk_with_envelope(struct futhark_context *fc, const void *data, int64_
}
double
compute_next_lbm
(
struct
dispatch_context
*
dc
,
struct
futhark_context
*
fc
,
chunk_info_t
*
ci
)
{
double
start0
=
MPI_Wtime
();
struct
futhark_f32_4d
*
fut_chunk_with_envelope
=
get_chunk_with_envelope
(
dc
,
fc
,
1
,
convert_chunk_with_envelope
);
double
finish0
=
MPI_Wtime
();
struct
futhark_f32_4d
*
fut_next_chunk_lbm
;
// Warmup
...
...
@@ -50,7 +52,7 @@ double compute_next_lbm(struct dispatch_context *dc, struct futhark_context *fc,
futhark_context_sync
(
fc
);
futhark_free_f32_4d
(
fc
,
fut_next_chunk_lbm
);
double
start
=
MPI_Wtime
();
double
start
1
=
MPI_Wtime
();
for
(
int
i
=
0
;
i
<
N_ITERATIONS
;
++
i
)
{
futhark_entry_next_chunk_lbm
(
fc
,
&
fut_next_chunk_lbm
,
fut_chunk_with_envelope
);
futhark_context_sync
(
fc
);
...
...
@@ -58,10 +60,10 @@ double compute_next_lbm(struct dispatch_context *dc, struct futhark_context *fc,
}
futhark_values_f32_4d
(
fc
,
fut_next_chunk_lbm
,
ci
->
data
);
futhark_context_sync
(
fc
);
double
finish
=
MPI_Wtime
();
double
finish
1
=
MPI_Wtime
();
futhark_free_f32_4d
(
fc
,
fut_chunk_with_envelope
);
return
finish
-
start
;
return
(
finish
0
-
start
0
)
+
(
finish1
-
start1
)
;
}
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment