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
5c7498b8
Verified
Commit
5c7498b8
authored
3 years ago
by
baptiste.coudray
Browse files
Options
Downloads
Patches
Plain Diff
Removed useless lines
parent
9e6be304
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
futhark_mpi/futhark.h
+4
-5
4 additions, 5 deletions
futhark_mpi/futhark.h
game_of_life/benchmark/main.c
+2
-3
2 additions, 3 deletions
game_of_life/benchmark/main.c
game_of_life/main.c
+2
-2
2 additions, 2 deletions
game_of_life/main.c
with
9 additions
and
10 deletions
.gitignore
+
1
−
0
View file @
5c7498b8
...
...
@@ -68,3 +68,4 @@ Temporary Items
.apdisk
.idea
game_of_life/benchmark/*.png
This diff is collapsed.
Click to expand it.
futhark_mpi/futhark.h
+
4
−
5
View file @
5c7498b8
...
...
@@ -7,6 +7,7 @@
struct
futhark_context
;
struct
futhark_u8_1d
;
struct
futhark_u8_2d
;
struct
futhark_u8_1d
*
futhark_new_u8_1d
(
struct
futhark_context
*
ctx
,
const
uint8_t
*
data
,
int64_t
dim0
);
...
...
@@ -19,7 +20,7 @@ int futhark_values_u8_1d(struct futhark_context *ctx, struct futhark_u8_1d *arr,
int
futhark_entry_get_envelope_1d
(
struct
futhark_context
*
ctx
,
struct
futhark_u8_1d
**
out0
,
struct
futhark_u8_1d
**
out1
,
const
struct
futhark_u8_1d
*
in0
,
const
int64_t
in1
);
struct
futhark_u8_1d
*
in0
,
int64_t
in1
);
int
futhark_entry_get_envelope_2d
(
struct
futhark_context
*
ctx
,
struct
futhark_u8_2d
**
out0
,
...
...
@@ -30,13 +31,11 @@ int futhark_entry_get_envelope_2d(struct futhark_context *ctx,
struct
futhark_u8_2d
**
out5
,
struct
futhark_u8_2d
**
out6
,
struct
futhark_u8_2d
**
out7
,
const
struct
futhark_u8_2d
*
in0
,
const
int64_t
in1
,
const
int64_t
in2
);
struct
futhark_u8_2d
*
in0
,
int64_t
in1
,
int64_t
in2
);
struct
futhark_u8_1d
*
futhark_new_u8_1d
(
struct
futhark_context
*
ctx
,
const
uint8_t
*
data
,
int64_t
dim0
);
struct
futhark_u8_2d
;
struct
futhark_u8_2d
*
futhark_new_u8_2d
(
struct
futhark_context
*
ctx
,
const
uint8_t
*
data
,
int64_t
dim0
,
int64_t
dim1
);
...
...
This diff is collapsed.
Click to expand it.
game_of_life/benchmark/main.c
+
2
−
3
View file @
5c7498b8
...
...
@@ -6,8 +6,8 @@
*/
#include
<stdio.h>
#include
<stdlib.h>
#include
<stdint.h>
#include
"stdlib.h"
#include
<mpi.h>
#include
"../gol.h"
#include
"../../futhark_mpi/dispatch.h"
...
...
@@ -15,9 +15,8 @@
#define INDEX_2D_TO_1D(y, x, nb_columns) ((y) * (nb_columns) + (x))
#define ROOT_RANK 0
#define FPS 60
#define N_MEASURES 15
#define N_MEASURES 15
#define N_ITERATIONS 100
void
init_chunk_board
(
chunk_info_t
*
ci
)
{
...
...
This diff is collapsed.
Click to expand it.
game_of_life/main.c
+
2
−
2
View file @
5c7498b8
...
...
@@ -7,8 +7,9 @@
#include
<stdio.h>
#include
<stdint.h>
#include
<mpi
.h
>
#include
"stdlib
.h
"
#include
<stdbool.h>
#include
<mpi.h>
#include
<unistd.h>
#include
"gol.h"
#include
"gfx.h"
...
...
@@ -85,7 +86,6 @@ void compute_next_chunk_board(struct dispatch_context *dc, struct futhark_contex
futhark_free_i8_2d
(
fc
,
fut_south_east
);
envelope_free
(
&
outer_envelope
);
}
int
main
(
int
argc
,
char
*
argv
[])
{
if
(
argc
<
3
)
{
printf
(
"usage: mpirun -n <nb_proc> %s <height> <width>
\n
"
,
argv
[
0
]);
...
...
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