Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
c3cd4d7c
Commit
c3cd4d7c
authored
Oct 12, 2009
by
Marc Howison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set collective mode as default for H5Part
parent
fdd69338
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
27 deletions
+26
-27
src/H5Part.c
src/H5Part.c
+19
-27
src/H5Part.h
src/H5Part.h
+1
-0
src/H5PartPrivate.h
src/H5PartPrivate.h
+6
-0
No files found.
src/H5Part.c
View file @
c3cd4d7c
...
...
@@ -137,10 +137,6 @@ _H5Part_open_file (
metadata block size, etc.
Set to 0 to disable. */
)
{
if
(
_init
()
<
0
)
{
HANDLE_H5PART_INIT_ERR
;
return
NULL
;
}
_h5part_errno
=
H5PART_SUCCESS
;
H5PartFile
*
f
=
NULL
;
...
...
@@ -204,14 +200,19 @@ _H5Part_open_file (
HANDLE_H5P_SET_FAPL_ERR
;
goto
error_cleanup
;
}
f
->
xfer_prop
=
H5Pcreate
(
H5P_DATASET_XFER
);
if
(
f
->
xfer_prop
<
0
)
{
HANDLE_H5P_CREATE_ERR
;
goto
error_cleanup
;
}
if
(
H5Pset_dxpl_mpio
(
f
->
xfer_prop
,
H5FD_MPIO_COLLECTIVE
)
<
0
)
{
HANDLE_H5P_SET_DXPL_MPIO_ERR
;
goto
error_cleanup
;
if
(
flags
&
H5PART_VFD_MPIIO_IND
)
{
_H5Part_print_info
(
"Using independent mode"
);
}
else
{
_H5Part_print_info
(
"Using collective mode"
);
f
->
xfer_prop
=
H5Pcreate
(
H5P_DATASET_XFER
);
if
(
f
->
xfer_prop
<
0
)
{
HANDLE_H5P_CREATE_ERR
;
goto
error_cleanup
;
}
if
(
H5Pset_dxpl_mpio
(
f
->
xfer_prop
,
H5FD_MPIO_COLLECTIVE
)
<
0
)
{
HANDLE_H5P_SET_DXPL_MPIO_ERR
;
goto
error_cleanup
;
}
}
}
...
...
@@ -373,7 +374,7 @@ H5PartOpenFileParallel (
const
char
flags
,
/*!< [in] The access mode for the file. */
MPI_Comm
comm
/*!< [in] MPI communicator */
)
{
INIT
SET_FNAME
(
"H5PartOpenFileParallel"
);
int
f_parallel
=
1
;
/* parallel i/o */
...
...
@@ -397,7 +398,7 @@ H5PartOpenFileParallelAlign (
MPI_Comm
comm
,
/*!< [in] MPI communicator */
h5part_int64_t
align
/*!< [in] Alignment size in bytes. */
)
{
INIT
SET_FNAME
(
"H5PartOpenFileParallelAlign"
);
int
f_parallel
=
1
;
/* parallel i/o */
...
...
@@ -432,7 +433,7 @@ H5PartOpenFile (
const
char
*
filename
,
/*!< [in] The name of the data file to open. */
const
char
flags
/*!< [in] The access mode for the file. */
)
{
INIT
SET_FNAME
(
"H5PartOpenFile"
);
MPI_Comm
comm
=
0
;
/* dummy */
...
...
@@ -456,7 +457,8 @@ H5PartOpenFileAlign (
const
char
flags
,
/*!< [in] The access mode for the file. */
h5part_int64_t
align
/*!< [in] Alignment size in bytes. */
)
{
SET_FNAME
(
"H5PartOpenFile"
);
INIT
SET_FNAME
(
"H5PartOpenFileAlign"
);
MPI_Comm
comm
=
0
;
/* dummy */
int
f_parallel
=
0
;
/* serial open */
...
...
@@ -673,7 +675,7 @@ H5PartSetNumParticles (
if
(
f
->
myproc
==
0
)
{
_H5Part_print_debug
(
"Particle offsets:"
);
for
(
i
=
0
;
i
<
f
->
nprocs
;
i
++
)
_H5Part_print_debug
(
"
\t
np=%lld"
,
_H5Part_print_debug
(
"
\t
[%d] np=%lld"
,
i
,
(
long
long
)
f
->
pnparticles
[
i
]
);
}
/* should I create a selection here? */
...
...
@@ -760,7 +762,6 @@ _write_data (
if
(
dataset_id
<
0
)
return
HANDLE_H5D_CREATE_ERR
(
name
,
f
->
timestep
);
#ifdef COLLECTIVE_IO
herr
=
H5Dwrite
(
dataset_id
,
type
,
...
...
@@ -768,15 +769,6 @@ _write_data (
f
->
diskshape
,
f
->
xfer_prop
,
array
);
#else
herr
=
H5Dwrite
(
dataset_id
,
type
,
f
->
memshape
,
f
->
diskshape
,
H5P_DEFAULT
,
array
);
#endif
if
(
herr
<
0
)
return
HANDLE_H5D_WRITE_ERR
(
name
,
f
->
timestep
);
...
...
src/H5Part.h
View file @
c3cd4d7c
...
...
@@ -34,6 +34,7 @@ extern "C" {
#define H5PART_APPEND 0x04
#define H5PART_VFD_MPIPOSIX 0x08
#define H5PART_FS_LUSTRE 0x10
#define H5PART_VFD_MPIIO_IND 0x20
/* verbosity level flags */
#define H5PART_VERB_NONE 0
...
...
src/H5PartPrivate.h
View file @
c3cd4d7c
...
...
@@ -52,6 +52,12 @@ _H5Part_get_funcname (
void
);
#define INIT do {\
if ( _init() < 0 ) {\
HANDLE_H5PART_INIT_ERR;\
return NULL;\
}}while(0);
#define SET_FNAME( fname ) _H5Part_set_funcname( fname );
hid_t
...
...
Write
Preview
Markdown
is supported
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