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
b48df30c
Commit
b48df30c
authored
8 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate unneeded struct member.
parent
4e5866a7
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_mpinonb.c
+4
-6
4 additions, 6 deletions
src/pio_mpinonb.c
with
4 additions
and
6 deletions
src/pio_mpinonb.c
+
4
−
6
View file @
b48df30c
...
...
@@ -20,7 +20,6 @@
struct
fileMPIFWS
{
char
*
name
;
size_t
size
;
struct
dBuffer
*
db1
;
struct
dBuffer
*
db2
;
struct
dBuffer
*
db
;
...
...
@@ -41,7 +40,7 @@ fileIDTest(void *a, void *fileID)
/***************************************************************/
static
struct
fileMPIFWS
*
initAFiledataMPINONB
(
const
char
*
filename
,
size_t
b
s
)
initAFiledataMPINONB
(
const
char
*
filename
,
size_t
b
ufSize
)
{
MPI_Comm
commPio
=
commInqCommPio
();
struct
fileMPIFWS
*
of
=
(
struct
fileMPIFWS
*
)
Malloc
(
sizeof
(
*
of
));
...
...
@@ -50,13 +49,12 @@ initAFiledataMPINONB(const char *filename, size_t bs)
char
*
name
=
of
->
name
=
Malloc
(
nameSize
);
memcpy
(
name
,
filename
,
nameSize
);
}
of
->
size
=
bs
;
of
->
db1
=
NULL
;
of
->
db2
=
NULL
;
/* init output buffer */
int
iret
=
dbuffer_init
(
&
(
of
->
db1
)
,
of
->
s
ize
);
iret
+=
dbuffer_init
(
&
(
of
->
db2
)
,
of
->
s
ize
);
int
iret
=
dbuffer_init
(
&
of
->
db1
,
bufS
ize
);
iret
+=
dbuffer_init
(
&
of
->
db2
,
bufS
ize
);
if
(
iret
>
0
)
xabort
(
"dbuffer_init did not succeed"
);
...
...
@@ -69,7 +67,7 @@ initAFiledataMPINONB(const char *filename, size_t bs)
{
xmpi
(
MPI_Info_create
(
&
open_info
));
char
buf_size_str
[
3
*
sizeof
(
size_t
)
*
CHAR_BIT
/
8
+
1
];
snprintf
(
buf_size_str
,
sizeof
(
buf_size_str
),
"%zu"
,
b
s
);
snprintf
(
buf_size_str
,
sizeof
(
buf_size_str
),
"%zu"
,
b
ufSize
);
xmpi
(
MPI_Info_set
(
open_info
,
"IBM_io_buffer_size"
,
buf_size_str
));
xmpi
(
MPI_Info_set
(
open_info
,
"IBM_largeblock_io"
,
"true"
));
}
...
...
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