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
f9ec2437
Verified
Commit
f9ec2437
authored
3 years ago
by
raphael.bach
Browse files
Options
Downloads
Patches
Plain Diff
Add `fmpi_sync()`
parent
6ab78295
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/fmpi_core.h
+4
-0
4 additions, 0 deletions
include/fmpi_core.h
src/fmpi_core.c
+9
-0
9 additions, 0 deletions
src/fmpi_core.c
with
13 additions
and
0 deletions
include/fmpi_core.h
+
4
−
0
View file @
f9ec2437
...
@@ -130,6 +130,10 @@ int fmpi_world_barrier(const struct fmpi_ctx * ctx);
...
@@ -130,6 +130,10 @@ int fmpi_world_barrier(const struct fmpi_ctx * ctx);
fmpi_run_task()
fmpi_run_task()
------------------------------------------------------------------------------*/
------------------------------------------------------------------------------*/
int
fmpi_run_task
(
const
struct
fmpi_ctx
*
ctx
,
const
struct
fmpi_task
*
task
);
int
fmpi_run_task
(
const
struct
fmpi_ctx
*
ctx
,
const
struct
fmpi_task
*
task
);
/*------------------------------------------------------------------------------
fmpi_sync()
------------------------------------------------------------------------------*/
int
fmpi_sync
(
const
struct
fmpi_ctx
*
ctx
);
/*==============================================================================
/*==============================================================================
MACRO
MACRO
==============================================================================*/
==============================================================================*/
...
...
This diff is collapsed.
Click to expand it.
src/fmpi_core.c
+
9
−
0
View file @
f9ec2437
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include
"fmpi_task.h"
#include
"fmpi_task.h"
#include
"internal/fmpi_ctx.h"
#include
"internal/fmpi_ctx.h"
#include
"internal/fmpi_error.h"
#include
"internal/fmpi_error.h"
#include
"internal/fmpi_futhark.h"
#include
"internal/fmpi_mpi.h"
#include
"internal/fmpi_mpi.h"
/*==============================================================================
/*==============================================================================
PUBLIC FUNCTION DEFINITION
PUBLIC FUNCTION DEFINITION
...
@@ -108,3 +109,11 @@ int fmpi_run_task(
...
@@ -108,3 +109,11 @@ int fmpi_run_task(
}
}
return
fmpi_task_run_async
(
ctx
,
task
);
return
fmpi_task_run_async
(
ctx
,
task
);
}
}
/*------------------------------------------------------------------------------
fmpi_sync()
------------------------------------------------------------------------------*/
int
fmpi_sync
(
const
struct
fmpi_ctx
*
const
ctx
)
{
assert
(
ctx
!=
NULL
);
return
fmpi_futhark_sync
(
ctx
->
fut
);
}
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