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
99b1f72e
Commit
99b1f72e
authored
9 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Move declaration of function to header and rename.
parent
4ccb3ea7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/pio_server.c
+2
-6
2 additions, 6 deletions
src/pio_server.c
src/pio_util.c
+2
-2
2 additions, 2 deletions
src/pio_util.c
src/pio_util.h
+4
-0
4 additions, 0 deletions
src/pio_util.h
with
8 additions
and
8 deletions
src/pio_server.c
+
2
−
6
View file @
99b1f72e
...
...
@@ -744,10 +744,6 @@ struct passPlan
int
varStart
,
varEnd
;
};
void
deco1D_CCP
(
size_t
n
,
const
size_t
weightPfxSums
[
n
],
size_t
nparts
,
size_t
separators
[
nparts
+
1
]);
/**
* @param[out] passes_ pointer to pointer to 2-dimensional array of
* records of dimensions $number of passes \cdot number of collectors$,
...
...
@@ -793,8 +789,8 @@ planPasses(size_t streamIdx, const struct streamMapping *mapping,
* instead */
numPasses
=
1
;
struct
passPlan
*
passes
=
Malloc
(
sizeof
(
*
passes
)
*
collSize
);
d
eco1D_CCP
(
numWrittenRecords
,
recordDataSizePfxSums
,
collSize
,
recordSeparations
);
cdiPioD
eco1D_CCP
(
numWrittenRecords
,
recordDataSizePfxSums
,
collSize
,
recordSeparations
);
for
(
size_t
rank
=
0
;
rank
<
collSize
;
++
rank
)
{
size_t
startRecord
=
recordSeparations
[
rank
],
...
...
This diff is collapsed.
Click to expand it.
src/pio_util.c
+
2
−
2
View file @
99b1f72e
...
...
@@ -198,8 +198,8 @@ cdiPioQueryVarDims(int varShape[3], int vlistID, int varID)
void
d
eco1D_CCP
(
size_t
nelems
,
const
size_t
*
restrict
weightPfxSums
,
size_t
nparts
,
size_t
*
restrict
separators
)
cdiPioD
eco1D_CCP
(
size_t
nelems
,
const
size_t
*
restrict
weightPfxSums
,
size_t
nparts
,
size_t
*
restrict
separators
)
{
separators
[
0
]
=
0
;
separators
[
nparts
]
=
nelems
;
...
...
This diff is collapsed.
Click to expand it.
src/pio_util.h
+
4
−
0
View file @
99b1f72e
...
...
@@ -105,6 +105,10 @@ void printArray ( const char *, const char *, const void *, int, int, const char
int
cdiPioQueryVarDims
(
int
varShape
[
3
],
int
vlistID
,
int
varID
);
void
cdiPioDeco1D_CCP
(
size_t
n
,
const
size_t
weightPfxSums
[
n
],
size_t
nparts
,
size_t
separators
[
nparts
+
1
]);
#endif
/*
* Local Variables:
...
...
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