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
a7727635
Commit
a7727635
authored
Feb 22, 2010
by
Marc Howison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted the rename of xfer_prop because it is used in OPAL
parent
66476adf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
32 deletions
+32
-32
src/H5Block.c
src/H5Block.c
+2
-2
src/H5MultiBlock.c
src/H5MultiBlock.c
+2
-2
src/H5Part.c
src/H5Part.c
+26
-26
src/H5PartTypes.h
src/H5PartTypes.h
+2
-2
No files found.
src/H5Block.c
View file @
a7727635
...
...
@@ -1201,7 +1201,7 @@ _H5Block_read_data (
type
,
f
->
block
->
memshape
,
f
->
block
->
diskshape
,
f
->
d
xfer_prop
,
f
->
xfer_prop
,
data
);
if
(
herr
<
0
)
return
HANDLE_H5D_READ_ERR
(
name
,
f
->
timestep
);
...
...
@@ -1468,7 +1468,7 @@ _H5Block_write_data (
type
,
b
->
memshape
,
b
->
diskshape
,
f
->
d
xfer_prop
,
f
->
xfer_prop
,
data
);
if
(
herr
<
0
)
return
HANDLE_H5D_WRITE_ERR
(
name
,
f
->
timestep
);
...
...
src/H5MultiBlock.c
View file @
a7727635
...
...
@@ -916,7 +916,7 @@ _H5MultiBlock_read_data (
type
,
f
->
block
->
memshape
,
f
->
block
->
diskshape
,
f
->
d
xfer_prop
,
f
->
xfer_prop
,
*
data
);
if
(
herr
<
0
)
return
HANDLE_H5D_READ_ERR
(
field_name
,
f
->
timestep
);
...
...
@@ -1026,7 +1026,7 @@ _H5MultiBlock_write_data (
type
,
b
->
memshape
,
b
->
diskshape
,
f
->
d
xfer_prop
,
f
->
xfer_prop
,
data
);
if
(
herr
<
0
)
return
HANDLE_H5D_WRITE_ERR
(
name
,
f
->
timestep
);
...
...
src/H5Part.c
View file @
a7727635
...
...
@@ -154,10 +154,10 @@ _H5Part_open_file (
strncpy
(
f
->
groupname_step
,
H5PART_GROUPNAME_STEP
,
H5PART_STEPNAME_LEN
);
f
->
stepno_width
=
0
;
f
->
d
xfer_prop
=
f
->
dcreate_prop
=
f
->
fcreate_prop
=
H5P_DEFAULT
;
f
->
xfer_prop
=
f
->
dcreate_prop
=
f
->
fcreate_prop
=
H5P_DEFAULT
;
f
->
f
access_prop
=
H5Pcreate
(
H5P_FILE_ACCESS
);
if
(
f
->
f
access_prop
<
0
)
{
f
->
access_prop
=
H5Pcreate
(
H5P_FILE_ACCESS
);
if
(
f
->
access_prop
<
0
)
{
HANDLE_H5P_CREATE_ERR
;
goto
error_cleanup
;
}
...
...
@@ -187,7 +187,7 @@ _H5Part_open_file (
if
(
f
->
myproc
==
0
)
{
_H5Part_print_info
(
"Selecting MPI-POSIX VFD"
);
}
if
(
H5Pset_fapl_mpiposix
(
f
->
f
access_prop
,
comm
,
0
)
<
0
)
{
if
(
H5Pset_fapl_mpiposix
(
f
->
access_prop
,
comm
,
0
)
<
0
)
{
HANDLE_H5P_SET_FAPL_ERR
;
goto
error_cleanup
;
}
...
...
@@ -196,7 +196,7 @@ _H5Part_open_file (
if
(
f
->
myproc
==
0
)
{
_H5Part_print_info
(
"Selecting MPI-IO VFD"
);
}
if
(
H5Pset_fapl_mpio
(
f
->
f
access_prop
,
comm
,
info
)
<
0
)
{
if
(
H5Pset_fapl_mpio
(
f
->
access_prop
,
comm
,
info
)
<
0
)
{
HANDLE_H5P_SET_FAPL_ERR
;
goto
error_cleanup
;
}
...
...
@@ -208,12 +208,12 @@ _H5Part_open_file (
if
(
f
->
myproc
==
0
)
{
_H5Part_print_info
(
"Using collective mode"
);
}
f
->
d
xfer_prop
=
H5Pcreate
(
H5P_DATASET_XFER
);
if
(
f
->
d
xfer_prop
<
0
)
{
f
->
xfer_prop
=
H5Pcreate
(
H5P_DATASET_XFER
);
if
(
f
->
xfer_prop
<
0
)
{
HANDLE_H5P_CREATE_ERR
;
goto
error_cleanup
;
}
if
(
H5Pset_dxpl_mpio
(
f
->
d
xfer_prop
,
H5FD_MPIO_COLLECTIVE
)
<
0
)
{
if
(
H5Pset_dxpl_mpio
(
f
->
xfer_prop
,
H5FD_MPIO_COLLECTIVE
)
<
0
)
{
HANDLE_H5P_SET_DXPL_MPIO_ERR
;
goto
error_cleanup
;
}
...
...
@@ -253,14 +253,14 @@ _H5Part_open_file (
/* defer metadata cache flushing until file close */
H5AC_cache_config_t
cache_config
;
cache_config
.
version
=
H5AC__CURR_CACHE_CONFIG_VERSION
;
H5Pget_mdc_config
(
f
->
f
access_prop
,
&
cache_config
);
H5Pget_mdc_config
(
f
->
access_prop
,
&
cache_config
);
cache_config
.
set_initial_size
=
1
;
cache_config
.
initial_size
=
16
*
1024
*
1024
;
cache_config
.
evictions_enabled
=
0
;
cache_config
.
incr_mode
=
H5C_incr__off
;
cache_config
.
flash_incr_mode
=
H5C_flash_incr__off
;
cache_config
.
decr_mode
=
H5C_decr__off
;
H5Pset_mdc_config
(
f
->
f
access_prop
,
&
cache_config
);
H5Pset_mdc_config
(
f
->
access_prop
,
&
cache_config
);
#else // H5_USE_16_API
_H5Part_print_info
(
"Unable to defer metadata write: need HDF5 1.8"
);
...
...
@@ -283,7 +283,7 @@ _H5Part_open_file (
"Setting HDF5 alignment to %ld bytes"
,
align
);
}
if
(
H5Pset_alignment
(
f
->
f
access_prop
,
0
,
align
)
<
0
)
{
if
(
H5Pset_alignment
(
f
->
access_prop
,
0
,
align
)
<
0
)
{
HANDLE_H5P_SET_FAPL_ERR
;
goto
error_cleanup
;
}
...
...
@@ -292,7 +292,7 @@ _H5Part_open_file (
"Setting HDF5 meta block to %ld bytes"
,
align
);
}
if
(
H5Pset_meta_block_size
(
f
->
f
access_prop
,
align
)
<
0
)
{
if
(
H5Pset_meta_block_size
(
f
->
access_prop
,
align
)
<
0
)
{
HANDLE_H5P_SET_FAPL_ERR
;
goto
error_cleanup
;
}
...
...
@@ -306,24 +306,24 @@ _H5Part_open_file (
}
if
(
flags
&
H5PART_READ
)
{
f
->
file
=
H5Fopen
(
filename
,
H5F_ACC_RDONLY
,
f
->
f
access_prop
);
f
->
file
=
H5Fopen
(
filename
,
H5F_ACC_RDONLY
,
f
->
access_prop
);
}
else
if
(
flags
&
H5PART_WRITE
){
f
->
file
=
H5Fcreate
(
filename
,
H5F_ACC_TRUNC
,
f
->
fcreate_prop
,
f
->
f
access_prop
);
f
->
access_prop
);
f
->
empty
=
1
;
}
else
if
(
flags
&
H5PART_APPEND
)
{
int
fd
=
open
(
filename
,
O_RDONLY
,
0
);
if
(
(
fd
==
-
1
)
&&
(
errno
==
ENOENT
)
)
{
f
->
file
=
H5Fcreate
(
filename
,
H5F_ACC_TRUNC
,
f
->
fcreate_prop
,
f
->
f
access_prop
);
f
->
fcreate_prop
,
f
->
access_prop
);
f
->
empty
=
1
;
}
else
if
(
fd
!=
-
1
)
{
close
(
fd
);
f
->
file
=
H5Fopen
(
filename
,
H5F_ACC_RDWR
,
f
->
f
access_prop
);
filename
,
H5F_ACC_RDWR
,
f
->
access_prop
);
/*
The following function call returns an error,
if f->file < 0. But we can safely ignore this.
...
...
@@ -558,10 +558,10 @@ H5PartCloseFile (
if
(
r
<
0
)
HANDLE_H5S_CLOSE_ERR
;
f
->
memshape
=
0
;
}
if
(
f
->
d
xfer_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
d
xfer_prop
);
if
(
r
<
0
)
HANDLE_H5P_CLOSE_ERR
(
"f->
d
xfer_prop"
);
f
->
d
xfer_prop
=
H5P_DEFAULT
;
if
(
f
->
xfer_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
xfer_prop
);
if
(
r
<
0
)
HANDLE_H5P_CLOSE_ERR
(
"f->xfer_prop"
);
f
->
xfer_prop
=
H5P_DEFAULT
;
}
if
(
f
->
dcreate_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
dcreate_prop
);
...
...
@@ -575,10 +575,10 @@ H5PartCloseFile (
if
(
r
<
0
)
HANDLE_H5F_CLOSE_ERR
;
f
->
file
=
0
;
}
if
(
f
->
f
access_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
f
access_prop
);
if
(
r
<
0
)
HANDLE_H5P_CLOSE_ERR
(
"f->
f
access_prop"
);
f
->
f
access_prop
=
H5P_DEFAULT
;
if
(
f
->
access_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
access_prop
);
if
(
r
<
0
)
HANDLE_H5P_CLOSE_ERR
(
"f->access_prop"
);
f
->
access_prop
=
H5P_DEFAULT
;
}
if
(
f
->
fcreate_prop
!=
H5P_DEFAULT
)
{
r
=
H5Pclose
(
f
->
fcreate_prop
);
...
...
@@ -1024,7 +1024,7 @@ _write_data (
type
,
f
->
memshape
,
f
->
diskshape
,
f
->
d
xfer_prop
,
f
->
xfer_prop
,
array
);
#ifdef PARALLEL_IO
...
...
@@ -3186,7 +3186,7 @@ _read_data (
complement to disk hyperslab) */
space_id
,
/* shape/size of data on disk
(get hyperslab if needed) */
f
->
d
xfer_prop
,
/* ignore... its for parallel reads */
f
->
xfer_prop
,
/* ignore... its for parallel reads */
array
);
if
(
herr
<
0
)
return
HANDLE_H5D_READ_ERR
(
name2
,
f
->
timestep
);
...
...
src/H5PartTypes.h
View file @
a7727635
...
...
@@ -49,9 +49,9 @@ struct H5PartFile {
hid_t
timegroup
;
hid_t
shape
;
hid_t
dxfer_prop
;
hid_t
xfer_prop
;
hid_t
access_prop
;
hid_t
dcreate_prop
;
hid_t
faccess_prop
;
hid_t
fcreate_prop
;
/* the dataspace on disk for the current view */
...
...
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