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
c117e14f
Commit
c117e14f
authored
3 years ago
by
Xingran Wang
Browse files
Options
Downloads
Patches
Plain Diff
refine sct timers for grib write
parent
0825fb32
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_server.c
+10
-0
10 additions, 0 deletions
src/pio_server.c
src/sct_timer_helper.h
+6
-0
6 additions, 0 deletions
src/sct_timer_helper.h
with
16 additions
and
0 deletions
src/pio_server.c
+
10
−
0
View file @
c117e14f
...
...
@@ -1845,12 +1845,18 @@ writeGribStream(size_t streamIdx,
recordDataOfs
+=
recordSize
;
sct_stop
(
timer_writeSlice
);
}
sct_start
(
timer_cdipioFileWrite
);
aggBufFlush
(
streamID
,
fileID
,
cdiPioFileWrite
);
sct_stop
(
timer_cdipioFileWrite
);
}
else
{
/* write zero bytes to trigger synchronization code in fileWrite */
sct_start
(
timer_cdipioFileWrite
);
cdiPioFileWrite
(
fileID
,
NULL
,
0
,
streamInqCurTimestepID
(
streamID
));
sct_stop
(
timer_cdipioFileWrite
);
}
namespaceSwitchSet
(
NSSWITCH_FILE_WRITE
,
NSSW_FUNC
(
cdiPioFileWrite
));
}
Free
(
displ
);
...
...
@@ -1880,13 +1886,17 @@ readGetBuffers(size_t streamIdx, const struct cdiPioConf *conf)
xassert
(
winDict
[
headerIdx
].
id
>=
MINFUNCID
&&
winDict
[
headerIdx
].
id
<=
MAXFUNCID
);
++
numFuncCalls
;
sct_start
(
timer_defTimeStep
);
readFuncCall
(
winDict
+
headerIdx
,
streamIdx
);
sct_stop
(
timer_defTimeStep
);
}
xassert
(
numFuncCalls
==
winDict
[
0
].
specific
.
headerSize
.
numRPCEntries
);
}
/* build list of streams, data was transferred for */
{
sct_start
(
timer_StreamMappingNew
);
struct
streamMapping
*
map
=
streamMappingNew
(
streamIdx
,
winDict
,
conf
);
sct_stop
(
timer_StreamMappingNew
);
/* TODO: build list of rma buffer layout here to check if caching
* can be done */
void
*
data
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
src/sct_timer_helper.h
+
6
−
0
View file @
c117e14f
...
...
@@ -21,6 +21,7 @@ EXTERN int timer_preWriteChunk;
EXTERN
int
timer_writeDeco
;
EXTERN
int
timer_streamWriteVarChunk
;
EXTERN
int
timer_writeSlice
;
EXTERN
int
timer_cdipioFileWrite
;
EXTERN
int
timer_mpiAllGather
;
EXTERN
int
timer_mpiFileWriteAtAll
;
...
...
@@ -28,4 +29,9 @@ EXTERN int context_handle;
EXTERN
int
timer_globTotal
;
EXTERN
int
timer_StreamMappingNew
;
EXTERN
int
timer_defTimeStep
;
EXTERN
int
timer_tmp2
;
EXTERN
int
timer_tmp3
;
#endif
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