Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
612cbbff
Commit
612cbbff
authored
7 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add callback for server-side actions following a write batch.
parent
7a85f31a
No related branches found
No related tags found
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cdipio.h
+4
-0
4 additions, 0 deletions
src/cdipio.h
src/pio_conf.h
+1
-1
1 addition, 1 deletion
src/pio_conf.h
src/pio_server.c
+1
-0
1 addition, 0 deletions
src/pio_server.c
with
6 additions
and
1 deletion
src/cdipio.h
+
4
−
0
View file @
612cbbff
...
...
@@ -158,6 +158,10 @@ void (*cdiPioConfGetPostCommSetupActions(int confResH))(void);
* BIND(C) on Fortran side
*/
#define CDIPIO_CALLBACK_POSTSTREAMCLOSE 1
/* CDIPIO_CALLBACK_POSTWRITEBATCH: trigger number for callback called
* on server side after the processing for all operations initiated by
* a client-side pioWriteTimestep have completed */
#define CDIPIO_CALLBACK_POSTWRITEBATCH 2
/* cdiPioConfSetCallBack: set function to be called at
* indicated trigger of configuration object, action will be cast to
...
...
This diff is collapsed.
Click to expand it.
src/pio_conf.h
+
1
−
1
View file @
612cbbff
...
...
@@ -16,7 +16,7 @@ typedef Xt_xmap (*xmap_new_func_ptr)(Xt_idxlist src_idxlist, Xt_idxlist dst_idxl
enum
{
CDIPIO_NUM_CALLBACKS
=
2
,
CDIPIO_NUM_CALLBACKS
=
3
,
};
/*
...
...
This diff is collapsed.
Click to expand it.
src/pio_server.c
+
1
−
0
View file @
612cbbff
...
...
@@ -1634,6 +1634,7 @@ cdiPioCollectorMessageLoop()
xmpi
(
MPI_Recv
(
streamActivity
,
(
int
)
openStreams
.
size
,
MPI_INT
,
source
,
tag
,
pioInterComm
,
&
status
));
xdebug
(
"RECEIVED MESSAGE WITH TAG
\"
WRITETS
\"
: source=%d"
,
source
);
getTimeStepData
(
streamActivity
,
conf
);
conf
->
callbacks
[
CDIPIO_CALLBACK_POSTWRITEBATCH
]();
}
break
;
...
...
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