Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fmpi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raphael.bach
fmpi
Commits
c58faaa3
Verified
Commit
c58faaa3
authored
3 years ago
by
raphael.bach
Browse files
Options
Downloads
Patches
Plain Diff
Add array of `fmpi_task` to `fmpi_ctx`
parent
cec0d188
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/internal/fmpi_ctx.h
+5
-0
5 additions, 0 deletions
include/internal/fmpi_ctx.h
src/fmpi_ctx.c
+1
-0
1 addition, 0 deletions
src/fmpi_ctx.c
with
6 additions
and
0 deletions
include/internal/fmpi_ctx.h
+
5
−
0
View file @
c58faaa3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/fmpi_ctx.c
+
1
−
0
View file @
c58faaa3
...
@@ -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
;
}
}
/*------------------------------------------------------------------------------
/*------------------------------------------------------------------------------
...
...
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