Skip to content
Snippets Groups Projects
Verified Commit c58faaa3 authored by raphael.bach's avatar raphael.bach
Browse files

Add array of `fmpi_task` to `fmpi_ctx`

parent cec0d188
Branches
Tags
No related merge requests found
...@@ -26,7 +26,10 @@ ...@@ -26,7 +26,10 @@
/*============================================================================== /*==============================================================================
INCLUDE INCLUDE
==============================================================================*/ ==============================================================================*/
// C Standard Library
#include <stddef.h> // size_t
// Internal // Internal
#include "../fmpi_task.h"
#include "fmpi_error.h" #include "fmpi_error.h"
/*============================================================================== /*==============================================================================
STRUCT STRUCT
...@@ -44,6 +47,8 @@ ...@@ -44,6 +47,8 @@
typedef struct fmpi_ctx { typedef struct fmpi_ctx {
struct fmpi_mpi_ctx * mpi; //!< TODO struct fmpi_mpi_ctx * mpi; //!< TODO
struct fmpi_futhark_ctx * fut; //!< TODO struct fmpi_futhark_ctx * fut; //!< TODO
struct fmpi_task tasks[32];
size_t task_cnt;
double timer_start; //!< TODO double timer_start; //!< TODO
double timer_stop; //!< TODO double timer_stop; //!< TODO
const struct fmpi_error_handler * err_handler; //!< TODO const struct fmpi_error_handler * err_handler; //!< TODO
......
...@@ -83,6 +83,7 @@ struct fmpi_ctx * fmpi_ctx_create(int * argc, char ** argv[]) ...@@ -83,6 +83,7 @@ struct fmpi_ctx * fmpi_ctx_create(int * argc, char ** argv[])
.func = fmpi_error_callback, .func = fmpi_error_callback,
.user_data = ctx .user_data = ctx
}); });
ctx->task_cnt = 0;
return ctx; return ctx;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment