Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
99b1f72e
Commit
99b1f72e
authored
Apr 08, 2016
by
Thomas Jahns
🤸
Browse files
Move declaration of function to header and rename.
parent
4ccb3ea7
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pio_server.c
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
],
...
...
src/pio_util.c
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
;
...
...
src/pio_util.h
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:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment