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
e6d18b05
Commit
e6d18b05
authored
9 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use already stored result of query.
parent
c872f75a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pio_interface.c
+2
-4
2 additions, 4 deletions
src/pio_interface.c
with
2 additions
and
4 deletions
src/pio_interface.c
+
2
−
4
View file @
e6d18b05
...
...
@@ -407,8 +407,6 @@ static void cdiPioFileWritingInit(const struct cdiPioConf *conf);
MPI_Comm
cdiPioInit
(
MPI_Comm
commGlob
,
int
confResH
,
int
*
pioNamespace
)
{
int
sizeGlob
;
namespaceSwitchSet
(
NSSWITCH_ABORT
,
NSSW_FUNC
(
cdiAbortC_MPI
));
namespaceSwitchSet
(
NSSWITCH_WARNING
,
NSSW_FUNC
(
cdiPioWarning
));
...
...
@@ -423,7 +421,7 @@ cdiPioInit(MPI_Comm commGlob, int confResH, int *pioNamespace)
if
((
xtInitByCDI
=
(
!
xt_initialized
()
||
xt_finalized
())))
xt_initialize
(
commGlob
);
int
nProcsIO
=
cdiPioCommInit
(
commGlob
,
IOMode
,
conf
->
clientServerRole
);
sizeGlob
=
commInqSizeGlob
();
int
sizeGlob
=
commInqSizeGlob
();
if
(((
IOMode
!=
PIO_NONE
&&
(
nProcsIO
<=
0
||
nProcsIO
>
sizeGlob
-
1
)))
||
(
IOMode
==
PIO_NONE
&&
nProcsIO
!=
1
))
xabort
(
"DISTRIBUTION OF TASKS ON PROCS IS NOT VALID.
\n
"
...
...
@@ -433,7 +431,7 @@ cdiPioInit(MPI_Comm commGlob, int confResH, int *pioNamespace)
cdiPIOpartInflate_
=
conf
->
partInflate
;
// JUST FOR TEST CASES WITH ONLY ONE MPI TASK
if
(
commInqS
izeGlob
()
==
1
)
if
(
s
izeGlob
==
1
)
{
pioNamespace_
=
*
pioNamespace
=
namespaceNew
();
return
commInqCommGlob
();
...
...
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