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
d9245298
Commit
d9245298
authored
3 years ago
by
Xingran Wang
Browse files
Options
Downloads
Patches
Plain Diff
use different sct context for I/O servers
parent
e1cdf248
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/pio_interface.c
+4
-5
4 additions, 5 deletions
src/pio_interface.c
src/pio_server.c
+1
-0
1 addition, 0 deletions
src/pio_server.c
with
5 additions
and
5 deletions
src/pio_interface.c
+
4
−
5
View file @
d9245298
...
...
@@ -550,9 +550,10 @@ pioInit(MPI_Comm commGlob, int nProcsIO, int IOMode,
static
void
cdiPioFileWritingInit
(
void
);
int
new_
timer
(
const
int
tsize
,
const
char
*
context_name
,
MPI_Comm
comm
)
void
new_
context
(
const
char
*
context_name
,
MPI_Comm
comm
)
{
int
timer_size
=
sct_init
(
tsize
,
context_name
,
comm
);
context_handle
=
sct_new_context
(
context_name
,
comm
);
sct_context_start
(
context_handle
);
timer_ioTotal
=
sct_new_timer
(
"IO servers total"
);
timer_getTimeStepData
=
sct_new_timer
(
"getTimeStepData"
);
...
...
@@ -568,8 +569,6 @@ int new_timer(const int tsize, const char *context_name, MPI_Comm comm)
timer_writeSlice
=
sct_new_timer
(
"write slice"
);
timer_aggBufFlush
=
sct_new_timer
(
"aggregate buffer flush"
);
timer_postwritebatch
=
sct_new_timer
(
"post write batch"
);
return
timer_size
;
}
MPI_Comm
...
...
@@ -664,7 +663,7 @@ cdiPioInit(MPI_Comm commGlob, int confResH, int *pioNamespace)
conf
->
callbacks
[
CDIPIO_CALLBACK_POSTCOMMSETUP
]();
cdiPioFileWritingInit
();
// initialize sct timer
new_
timer
(
TIMER_MAX
,
"CDI-PIO timer"
,
commInqCommPio
());
new_
context
(
"CDI-PIO timer"
,
commInqCommPio
());
sct_start
(
timer_ioTotal
);
if
(
commInqRankColl
()
>=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
src/pio_server.c
+
1
−
0
View file @
d9245298
...
...
@@ -2461,6 +2461,7 @@ void cdiPioCollectorMessageLoop()
case
FINALIZE
:
xdebug
(
"%s"
,
"tag: FINALIZE"
);
sct_stop
(
timer_ioTotal
);
sct_context_stop
(
context_handle
);
sct_report
(
SCT_GETENV
,
SCT_GETENV
,
SCT_GETENV
);
xmpi
(
MPI_Recv
(
NULL
,
0
,
MPI_INT
,
source
,
tag
,
pioInterComm
,
&
status
));
for
(
size_t
streamIdx
=
0
;
streamIdx
<
openStreams
.
size
;
++
streamIdx
)
...
...
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