Skip to content
Snippets Groups Projects
Verified Commit 5c7498b8 authored by baptiste.coudray's avatar baptiste.coudray
Browse files

Removed useless lines

parent 9e6be304
No related branches found
No related tags found
No related merge requests found
......@@ -68,3 +68,4 @@ Temporary Items
.apdisk
.idea
game_of_life/benchmark/*.png
......@@ -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);
......
......@@ -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) {
......
......@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment