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

Fixed illegal access

parent 207e89d3
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,6 @@ void compute_next_chunk_board(struct dispatch_context *dc, struct futhark_contex
futhark_context_sync(fc);
futhark_free_i8_2d(fc, fut_chunk_board);
futhark_free_i8_2d(fc, fut_next_chunk_board);
futhark_free_i8_2d(fc, fut_north_west);
futhark_free_i8_2d(fc, fut_north);
futhark_free_i8_2d(fc, fut_north_east);
......@@ -81,6 +80,7 @@ void compute_next_chunk_board(struct dispatch_context *dc, struct futhark_contex
futhark_values_i8_2d(fc, fut_next_chunk_board, ci->data);
futhark_context_sync(fc);
futhark_free_i8_2d(fc, fut_next_chunk_board);
}
int main(int argc, char *argv[]) {
......@@ -106,9 +106,7 @@ int main(int argc, char *argv[]) {
int board_dimensions[2] = {board_n, board_m};
struct dispatch_context *disp_context = dispatch_context_new(board_dimensions, MPI_INT8_T, 2);
dispatch_context_print(disp_context);
chunk_info_t ci = get_chunk_info(disp_context);
chunk_info_print(&ci);
init_chunk_board(&ci);
double start = MPI_Wtime();
......
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