2003-05-07 16:52:24 -05:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 09:56:24 -05:00
|
|
|
* Copyright by The HDF Group. *
|
2003-05-07 16:52:24 -05:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 09:56:24 -05:00
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2003-05-07 16:52:24 -05:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Programmer: Quincey Koziol <koziol@ncsa.uiuc.edu>
|
|
|
|
* Monday, April 14, 2003
|
|
|
|
*
|
|
|
|
* Purpose: This file contains declarations which are visible only within
|
|
|
|
* the H5D package. Source files outside the H5D package should
|
|
|
|
* include H5Dprivate.h instead.
|
|
|
|
*/
|
|
|
|
#ifndef H5D_PACKAGE
|
|
|
|
#error "Do not include this file outside the H5D package!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _H5Dpkg_H
|
|
|
|
#define _H5Dpkg_H
|
|
|
|
|
|
|
|
/* Get package's private header */
|
|
|
|
#include "H5Dprivate.h"
|
|
|
|
|
|
|
|
/* Other private headers needed by this file */
|
2003-05-08 15:09:07 -05:00
|
|
|
#include "H5Gprivate.h" /* Groups */
|
2003-05-07 16:52:24 -05:00
|
|
|
#include "H5Oprivate.h" /* Object headers */
|
2004-07-22 15:46:27 -05:00
|
|
|
#include "H5Sprivate.h" /* Dataspaces */
|
2006-02-16 12:08:34 -05:00
|
|
|
#include "H5SLprivate.h" /* Skip lists */
|
2006-11-17 10:48:41 -05:00
|
|
|
#include "H5Tprivate.h" /* Datatypes */
|
2003-05-07 16:52:24 -05:00
|
|
|
|
2003-05-15 14:22:33 -05:00
|
|
|
/**************************/
|
|
|
|
/* Package Private Macros */
|
|
|
|
/**************************/
|
|
|
|
|
2003-05-07 16:52:24 -05:00
|
|
|
/* The number of reserved IDs in dataset ID group */
|
|
|
|
#define H5D_RESERVED_ATOMS 0
|
|
|
|
|
|
|
|
/* Set the minimum object header size to create objects with */
|
|
|
|
#define H5D_MINHDR_SIZE 256
|
|
|
|
|
2004-09-29 22:46:58 -05:00
|
|
|
/* [Simple] Macro to construct a H5D_io_info_t from it's components */
|
2008-04-30 14:51:13 -05:00
|
|
|
#define H5D_BUILD_IO_INFO_WRT(io_info, ds, dxpl_c, dxpl_i, str, buf) \
|
|
|
|
(io_info)->dset = ds; \
|
|
|
|
(io_info)->dxpl_cache = dxpl_c; \
|
|
|
|
(io_info)->dxpl_id = dxpl_i; \
|
|
|
|
(io_info)->store = str; \
|
|
|
|
(io_info)->op_type = H5D_IO_OP_WRITE; \
|
|
|
|
(io_info)->u.wbuf = buf
|
|
|
|
#define H5D_BUILD_IO_INFO_RD(io_info, ds, dxpl_c, dxpl_i, str, buf) \
|
|
|
|
(io_info)->dset = ds; \
|
|
|
|
(io_info)->dxpl_cache = dxpl_c; \
|
|
|
|
(io_info)->dxpl_id = dxpl_i; \
|
|
|
|
(io_info)->store = str; \
|
|
|
|
(io_info)->op_type = H5D_IO_OP_READ; \
|
|
|
|
(io_info)->u.rbuf = buf
|
|
|
|
|
|
|
|
#define H5D_CHUNK_HASH(D, ADDR) H5F_addr_hash(ADDR, (D)->cache.chunk.nslots)
|
2004-09-29 22:46:58 -05:00
|
|
|
|
2006-11-01 23:54:19 -05:00
|
|
|
|
2003-05-07 16:52:24 -05:00
|
|
|
/****************************/
|
|
|
|
/* Package Private Typedefs */
|
|
|
|
/****************************/
|
|
|
|
|
2008-04-30 14:51:13 -05:00
|
|
|
/* Typedef for datatype information for raw data I/O operation */
|
|
|
|
typedef struct H5D_type_info_t {
|
|
|
|
/* Initial values */
|
|
|
|
const H5T_t *mem_type; /* Pointer to memory datatype */
|
|
|
|
const H5T_t *dset_type; /* Pointer to dataset datatype */
|
|
|
|
H5T_path_t *tpath; /* Datatype conversion path */
|
|
|
|
hid_t src_type_id; /* Source datatype ID */
|
|
|
|
hid_t dst_type_id; /* Destination datatype ID */
|
|
|
|
|
|
|
|
/* Computed/derived values */
|
|
|
|
size_t src_type_size; /* Size of source type */
|
|
|
|
size_t dst_type_size; /* Size of destination type*/
|
|
|
|
size_t max_type_size; /* Size of largest source/destination type */
|
|
|
|
hbool_t is_conv_noop; /* Whether the type conversion is a NOOP */
|
|
|
|
hbool_t is_xform_noop; /* Whether the data transform is a NOOP */
|
2008-09-22 18:41:31 -05:00
|
|
|
const H5T_subset_info_t *cmpd_subset; /* Info related to the compound subset conversion functions */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5T_bkg_t need_bkg; /* Type of background buf needed */
|
|
|
|
size_t request_nelmts; /* Requested strip mine */
|
|
|
|
uint8_t *tconv_buf; /* Datatype conv buffer */
|
|
|
|
hbool_t tconv_buf_allocated; /* Whether the type conversion buffer was allocated */
|
|
|
|
uint8_t *bkg_buf; /* Background buffer */
|
|
|
|
hbool_t bkg_buf_allocated; /* Whether the background buffer was allocated */
|
|
|
|
} H5D_type_info_t;
|
|
|
|
|
|
|
|
/* Forward declaration of structs used below */
|
2004-10-01 18:00:42 -05:00
|
|
|
struct H5D_io_info_t;
|
2008-04-30 14:51:13 -05:00
|
|
|
struct H5D_chunk_map_t;
|
2004-10-01 18:00:42 -05:00
|
|
|
|
|
|
|
/* Function pointers for I/O on particular types of dataset layouts */
|
2009-04-23 17:55:18 -05:00
|
|
|
typedef herr_t (*H5D_layout_construct_func_t)(H5F_t *f, hid_t dapl_id, hid_t dxpl_id,
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_t *dset, const H5P_genplist_t *dc_plist);
|
2009-01-27 09:00:07 -05:00
|
|
|
typedef hbool_t (*H5D_layout_is_space_alloc_func_t)(const H5O_layout_t *layout);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
typedef herr_t (*H5D_layout_io_init_func_t)(const struct H5D_io_info_t *io_info,
|
2008-04-30 14:51:13 -05:00
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space,
|
|
|
|
struct H5D_chunk_map_t *cm);
|
|
|
|
typedef herr_t (*H5D_layout_read_func_t)(struct H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, struct H5D_chunk_map_t *fm);
|
|
|
|
typedef herr_t (*H5D_layout_write_func_t)(struct H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, struct H5D_chunk_map_t *fm);
|
|
|
|
typedef ssize_t (*H5D_layout_readvv_func_t)(const struct H5D_io_info_t *io_info,
|
2004-10-01 18:00:42 -05:00
|
|
|
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_offset_arr[],
|
2008-04-30 14:51:13 -05:00
|
|
|
size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_offset_arr[]);
|
|
|
|
typedef ssize_t (*H5D_layout_writevv_func_t)(const struct H5D_io_info_t *io_info,
|
2004-10-01 18:00:42 -05:00
|
|
|
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_offset_arr[],
|
2008-04-30 14:51:13 -05:00
|
|
|
size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_offset_arr[]);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
typedef herr_t (*H5D_layout_io_term_func_t)(const struct H5D_chunk_map_t *cm);
|
2008-04-30 14:51:13 -05:00
|
|
|
|
|
|
|
/* Typedef for grouping layout I/O routines */
|
|
|
|
typedef struct H5D_layout_ops_t {
|
2009-04-23 17:55:18 -05:00
|
|
|
H5D_layout_construct_func_t construct; /* Layout constructor for new datasets */
|
2009-01-27 09:00:07 -05:00
|
|
|
H5D_layout_is_space_alloc_func_t is_space_alloc; /* Query routine to determine if storage is allocated */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_layout_io_init_func_t io_init; /* I/O initialization routine */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5D_layout_read_func_t ser_read; /* High-level I/O routine for reading data in serial */
|
|
|
|
H5D_layout_write_func_t ser_write; /* High-level I/O routine for writing data in serial */
|
|
|
|
#ifdef H5_HAVE_PARALLEL
|
|
|
|
H5D_layout_read_func_t par_read; /* High-level I/O routine for reading data in parallel */
|
|
|
|
H5D_layout_write_func_t par_write; /* High-level I/O routine for writing data in parallel */
|
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
|
|
|
H5D_layout_readvv_func_t readvv; /* Low-level I/O routine for reading data */
|
|
|
|
H5D_layout_writevv_func_t writevv; /* Low-level I/O routine for writing data */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_layout_io_term_func_t io_term; /* I/O shutdown routine */
|
2008-04-30 14:51:13 -05:00
|
|
|
} H5D_layout_ops_t;
|
|
|
|
|
|
|
|
/* Function pointers for either multiple or single block I/O access */
|
|
|
|
typedef herr_t (*H5D_io_single_read_func_t)(const struct H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
typedef herr_t (*H5D_io_single_write_func_t)(const struct H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
2004-10-01 18:00:42 -05:00
|
|
|
|
|
|
|
/* Typedef for raw data I/O framework info */
|
|
|
|
typedef struct H5D_io_ops_t {
|
2008-04-30 14:51:13 -05:00
|
|
|
H5D_layout_read_func_t multi_read; /* High-level I/O routine for reading data */
|
|
|
|
H5D_layout_write_func_t multi_write; /* High-level I/O routine for writing data */
|
|
|
|
H5D_io_single_read_func_t single_read; /* I/O routine for reading single block */
|
|
|
|
H5D_io_single_write_func_t single_write; /* I/O routine for writing single block */
|
2004-10-01 18:00:42 -05:00
|
|
|
} H5D_io_ops_t;
|
|
|
|
|
2008-04-30 14:51:13 -05:00
|
|
|
/* Typedefs for dataset storage information */
|
|
|
|
typedef struct {
|
|
|
|
haddr_t dset_addr; /* Address of dataset in file */
|
|
|
|
hsize_t dset_size; /* Total size of dataset in file */
|
|
|
|
} H5D_contig_storage_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
hsize_t index; /* "Index" of chunk in dataset (must be first for TBBT routines) */
|
|
|
|
hsize_t *offset; /* Chunk's coordinates in elements */
|
|
|
|
} H5D_chunk_storage_t;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
void *buf; /* Buffer for compact dataset */
|
|
|
|
hbool_t *dirty; /* Pointer to dirty flag to mark */
|
|
|
|
} H5D_compact_storage_t;
|
|
|
|
|
|
|
|
typedef union H5D_storage_t {
|
|
|
|
H5D_contig_storage_t contig; /* Contiguous information for dataset */
|
|
|
|
H5D_chunk_storage_t chunk; /* Chunk information for dataset */
|
|
|
|
H5D_compact_storage_t compact; /* Compact information for dataset */
|
|
|
|
H5O_efl_t efl; /* External file list information for dataset */
|
|
|
|
} H5D_storage_t;
|
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
/* Typedef for raw data I/O operation info */
|
2009-04-23 17:55:18 -05:00
|
|
|
typedef enum H5D_io_op_type_t {
|
|
|
|
H5D_IO_OP_READ, /* Read operation */
|
|
|
|
H5D_IO_OP_WRITE /* Write operation */
|
|
|
|
} H5D_io_op_type_t;
|
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
typedef struct H5D_io_info_t {
|
|
|
|
H5D_t *dset; /* Pointer to dataset being operated on */
|
2005-08-12 22:09:38 -05:00
|
|
|
#ifndef H5_HAVE_PARALLEL
|
|
|
|
const
|
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5D_dxpl_cache_t *dxpl_cache; /* Pointer to cached DXPL info */
|
2004-10-01 18:00:42 -05:00
|
|
|
hid_t dxpl_id; /* Original DXPL ID */
|
[svn-r11231] Purpose:
bug fix for collective chunk IO, phase 1
Optimization hasn't been done yet, the collective chunk IO bug should be fixed.
Description:
In chunking storage, memory space and file space will be remapped, So to check
whether file space and memory space are regular in order to use optimized MPI derived
datatype for collective call one has to check per-chunk wise instead of per hyperslab wise.
Even a regular memory space will be stored in span-tree and will be irregular before chunk IO.
Solution:
1. Check file space and memory space per chunk wise instead of per hyperslab wise.
2. For collective IO mode, number of chunks covered by hyperslab may be different. Since we are
handing per chunk per IO, for the extra chunk IO for some(not all) processors, collective mode will
cause program hanged. So for the extra chunk Io mode independent IO has to be used.
3. On some platforms, Complex MPI derived datatype is not working, so we have to use independent IO for collective IO mode if the selection is irregular. However, when the selection is regular, we do want to use collective IO since that will improve performance. Special cares have to be added for this case.
Platforms tested:
copper(AIX 5.1) Linux(heping mpich 1.2.6), Teragrid machine, Cobalt(altix), modi4
Misc. update:
2005-08-11 13:48:09 -05:00
|
|
|
#ifdef H5_HAVE_PARALLEL
|
2005-08-12 22:09:38 -05:00
|
|
|
MPI_Comm comm; /* MPI communicator for file */
|
[svn-r14250] Description:
- Changed name of chunk mapping structure from "fm_map" to "H5D_chunk_map_t"
- Pushed parallel I/O specific fields into ifdef'ed sections, when building
chunk map
- Took out most calls to IS_H5FD_MPI macro
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-10 17:36:04 -05:00
|
|
|
hbool_t using_mpi_vfd; /* Whether the file is using an MPI-based VFD */
|
2008-04-30 14:51:13 -05:00
|
|
|
struct {
|
|
|
|
H5FD_mpio_xfer_t xfer_mode; /* Parallel transfer for this request (H5D_XFER_IO_XFER_MODE_NAME) */
|
|
|
|
H5FD_mpio_collective_opt_t coll_opt_mode; /* Parallel transfer with independent IO or collective IO with this mode */
|
|
|
|
H5D_io_ops_t io_ops; /* I/O operation function pointers */
|
2008-09-16 10:52:51 -05:00
|
|
|
} orig;
|
2005-08-12 22:09:38 -05:00
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5D_storage_t *store; /* Dataset storage info */
|
|
|
|
H5D_layout_ops_t layout_ops; /* Dataset layout I/O operation function pointers */
|
|
|
|
H5D_io_ops_t io_ops; /* I/O operation function pointers */
|
2009-04-23 17:55:18 -05:00
|
|
|
H5D_io_op_type_t op_type;
|
2008-04-30 14:51:13 -05:00
|
|
|
union {
|
|
|
|
void *rbuf; /* Pointer to buffer for read */
|
|
|
|
const void *wbuf; /* Pointer to buffer to write */
|
|
|
|
} u;
|
2004-10-01 18:00:42 -05:00
|
|
|
} H5D_io_info_t;
|
|
|
|
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
|
|
|
|
/******************/
|
|
|
|
/* Chunk typedefs */
|
|
|
|
/******************/
|
|
|
|
|
|
|
|
/* Typedef for chunked dataset index operation info */
|
|
|
|
typedef struct H5D_chk_idx_info_t {
|
|
|
|
H5F_t *f; /* File pointer for operation */
|
|
|
|
hid_t dxpl_id; /* DXPL ID for operation */
|
|
|
|
H5O_layout_t *layout; /* Layout info for chunks */
|
|
|
|
} H5D_chk_idx_info_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* "Generic" chunk record. Each chunk is keyed by the minimum logical
|
|
|
|
* N-dimensional coordinates and the datatype size of the chunk.
|
|
|
|
* The fastest-varying dimension is assumed to reference individual bytes of
|
|
|
|
* the array, so a 100-element 1-D array of 4-byte integers would really be a
|
|
|
|
* 2-D array with the slow varying dimension of size 100 and the fast varying
|
|
|
|
* dimension of size 4 (the storage dimensionality has very little to do with
|
|
|
|
* the real dimensionality).
|
|
|
|
*
|
|
|
|
* The chunk's file address, filter mask and size on disk are not key values.
|
|
|
|
*/
|
|
|
|
typedef struct H5D_chunk_rec_t {
|
|
|
|
uint32_t nbytes; /* Size of stored data */
|
|
|
|
hsize_t offset[H5O_LAYOUT_NDIMS]; /* Logical offset to start*/
|
|
|
|
unsigned filter_mask; /* Excluded filters */
|
|
|
|
haddr_t chunk_addr; /* Address of chunk in file */
|
|
|
|
} H5D_chunk_rec_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Common data exchange structure for indexed storage nodes. This structure is
|
|
|
|
* passed through the indexing layer to the methods for the objects
|
|
|
|
* to which the index points.
|
|
|
|
*/
|
|
|
|
typedef struct H5D_chunk_common_ud_t {
|
|
|
|
/* downward */
|
|
|
|
const H5O_layout_t *mesg; /*layout message */
|
|
|
|
const hsize_t *offset; /*logical offset of chunk*/
|
|
|
|
} H5D_chunk_common_ud_t;
|
|
|
|
|
|
|
|
/* B-tree callback info for various operations */
|
|
|
|
typedef struct H5D_chunk_ud_t {
|
|
|
|
H5D_chunk_common_ud_t common; /* Common info for B-tree user data (must be first) */
|
|
|
|
|
|
|
|
/* Upward */
|
|
|
|
uint32_t nbytes; /*size of stored data */
|
|
|
|
unsigned filter_mask; /*excluded filters */
|
|
|
|
haddr_t addr; /*file address of chunk */
|
2008-09-16 10:52:51 -05:00
|
|
|
} H5D_chunk_ud_t;
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
|
|
|
|
/* Typedef for "generic" chunk callbacks */
|
|
|
|
typedef int (*H5D_chunk_cb_func_t)(const H5D_chunk_rec_t *chunk_rec,
|
|
|
|
void *udata);
|
|
|
|
|
|
|
|
/* Typedefs for chunk operations */
|
|
|
|
typedef herr_t (*H5D_chunk_init_func_t)(const H5D_chk_idx_info_t *idx_info);
|
|
|
|
typedef herr_t (*H5D_chunk_create_func_t)(const H5D_chk_idx_info_t *idx_info);
|
2009-01-27 09:00:07 -05:00
|
|
|
typedef hbool_t (*H5D_chunk_is_space_alloc_func_t)(const H5O_layout_t *layout);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
typedef herr_t (*H5D_chunk_insert_func_t)(const H5D_chk_idx_info_t *idx_info,
|
|
|
|
H5D_chunk_ud_t *udata);
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-06 23:17:35 -05:00
|
|
|
typedef herr_t (*H5D_chunk_get_addr_func_t)(const H5D_chk_idx_info_t *idx_info,
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_chunk_ud_t *udata);
|
|
|
|
typedef int (*H5D_chunk_iterate_func_t)(const H5D_chk_idx_info_t *idx_info,
|
|
|
|
H5D_chunk_cb_func_t chunk_cb, void *chunk_udata);
|
|
|
|
typedef herr_t (*H5D_chunk_remove_func_t)(const H5D_chk_idx_info_t *idx_info,
|
|
|
|
H5D_chunk_common_ud_t *udata);
|
|
|
|
typedef herr_t (*H5D_chunk_delete_func_t)(const H5D_chk_idx_info_t *idx_info);
|
|
|
|
typedef herr_t (*H5D_chunk_copy_setup_func_t)(const H5D_chk_idx_info_t *idx_info_src,
|
|
|
|
const H5D_chk_idx_info_t *idx_info_dst);
|
|
|
|
typedef herr_t (*H5D_chunk_copy_shutdown_func_t)(H5O_layout_t *layout_src,
|
|
|
|
H5O_layout_t *layout_dst);
|
|
|
|
typedef herr_t (*H5D_chunk_size_func_t)(const H5D_chk_idx_info_t *idx_info,
|
|
|
|
hsize_t *idx_size);
|
2009-01-27 09:00:07 -05:00
|
|
|
typedef herr_t (*H5D_chunk_reset_func_t)(H5O_layout_t *layout);
|
|
|
|
typedef herr_t (*H5D_chunk_dump_func_t)(const H5D_chk_idx_info_t *idx_info,
|
|
|
|
FILE *stream);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
typedef herr_t (*H5D_chunk_dest_func_t)(const H5D_chk_idx_info_t *idx_info);
|
|
|
|
|
|
|
|
/* Typedef for grouping chunk I/O routines */
|
|
|
|
typedef struct H5D_chunk_ops_t {
|
|
|
|
H5D_chunk_init_func_t init; /* Routine to initialize indexing information in memory */
|
|
|
|
H5D_chunk_create_func_t create; /* Routine to create chunk index */
|
2009-01-27 09:00:07 -05:00
|
|
|
H5D_chunk_is_space_alloc_func_t is_space_alloc; /* Query routine to determine if storage/index is allocated */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_chunk_insert_func_t insert; /* Routine to insert a chunk into an index */
|
|
|
|
H5D_chunk_get_addr_func_t get_addr; /* Routine to retrieve address of chunk in file */
|
|
|
|
H5D_chunk_iterate_func_t iterate; /* Routine to iterate over chunks */
|
|
|
|
H5D_chunk_remove_func_t remove; /* Routine to remove a chunk from an index */
|
2009-04-23 17:55:18 -05:00
|
|
|
H5D_chunk_delete_func_t idx_delete; /* Routine to delete index & all chunks from file*/
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_chunk_copy_setup_func_t copy_setup; /* Routine to perform any necessary setup for copying chunks */
|
|
|
|
H5D_chunk_copy_shutdown_func_t copy_shutdown; /* Routine to perform any necessary shutdown for copying chunks */
|
|
|
|
H5D_chunk_size_func_t size; /* Routine to get size of indexing information */
|
2009-01-27 09:00:07 -05:00
|
|
|
H5D_chunk_reset_func_t reset; /* Routine to reset indexing information */
|
|
|
|
H5D_chunk_dump_func_t dump; /* Routine to dump indexing information */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5D_chunk_dest_func_t dest; /* Routine to destroy indexing information in memory */
|
|
|
|
} H5D_chunk_ops_t;
|
|
|
|
|
[svn-r14334] Description:
- Avoid trying to update 1-D dataset's chunk indices (they can't change)
- Cache a copy of a dataspace describing a chunk, when doing single
element I/O
- Keep a 'chunk info' struct around, for single element I/O
- Avoid creating a skip list for chunk infos when performing I/O on single
element
Also, minor formatting cleanups to testing code
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-10 16:38:03 -05:00
|
|
|
/* Structure holding information about a chunk's selection for mapping */
|
|
|
|
typedef struct H5D_chunk_info_t {
|
|
|
|
hsize_t index; /* "Index" of chunk in dataset */
|
2008-05-15 22:04:56 -05:00
|
|
|
uint32_t chunk_points; /* Number of elements selected in chunk */
|
[svn-r14334] Description:
- Avoid trying to update 1-D dataset's chunk indices (they can't change)
- Cache a copy of a dataspace describing a chunk, when doing single
element I/O
- Keep a 'chunk info' struct around, for single element I/O
- Avoid creating a skip list for chunk infos when performing I/O on single
element
Also, minor formatting cleanups to testing code
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-10 16:38:03 -05:00
|
|
|
hsize_t coords[H5O_LAYOUT_NDIMS]; /* Coordinates of chunk in file dataset's dataspace */
|
|
|
|
H5S_t *fspace; /* Dataspace describing chunk & selection in it */
|
|
|
|
unsigned fspace_shared; /* Indicate that the file space for a chunk is shared and shouldn't be freed */
|
|
|
|
H5S_t *mspace; /* Dataspace describing selection in memory corresponding to this chunk */
|
|
|
|
unsigned mspace_shared; /* Indicate that the memory space for a chunk is shared and shouldn't be freed */
|
|
|
|
} H5D_chunk_info_t;
|
|
|
|
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
/* Main structure holding the mapping between file chunks and memory */
|
|
|
|
typedef struct H5D_chunk_map_t {
|
|
|
|
H5O_layout_t *layout; /* Dataset layout information*/
|
|
|
|
hsize_t nelmts; /* Number of elements selected in file & memory dataspaces */
|
|
|
|
|
|
|
|
const H5S_t *file_space; /* Pointer to the file dataspace */
|
|
|
|
unsigned f_ndims; /* Number of dimensions for file dataspace */
|
|
|
|
hsize_t f_dims[H5O_LAYOUT_NDIMS]; /* File dataspace dimensions */
|
|
|
|
|
|
|
|
const H5S_t *mem_space; /* Pointer to the memory dataspace */
|
|
|
|
H5S_t *mchunk_tmpl; /* Dataspace template for new memory chunks */
|
|
|
|
H5S_sel_iter_t mem_iter; /* Iterator for elements in memory selection */
|
|
|
|
unsigned m_ndims; /* Number of dimensions for memory dataspace */
|
|
|
|
H5S_sel_type msel_type; /* Selection type in memory */
|
|
|
|
|
|
|
|
H5SL_t *sel_chunks; /* Skip list containing information for each chunk selected */
|
|
|
|
|
|
|
|
H5S_t *single_space; /* Dataspace for single chunk */
|
|
|
|
H5D_chunk_info_t *single_chunk_info; /* Pointer to single chunk's info */
|
|
|
|
hbool_t use_single; /* Whether I/O is on a single element */
|
|
|
|
|
|
|
|
hsize_t last_index; /* Index of last chunk operated on */
|
|
|
|
H5D_chunk_info_t *last_chunk_info; /* Pointer to last chunk's info */
|
|
|
|
|
|
|
|
hsize_t chunks[H5O_LAYOUT_NDIMS]; /* Number of chunks in each dimension */
|
|
|
|
hsize_t chunk_dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in each dimension */
|
|
|
|
hsize_t down_chunks[H5O_LAYOUT_NDIMS]; /* "down" size of number of chunks in each dimension */
|
|
|
|
|
|
|
|
#ifdef H5_HAVE_PARALLEL
|
|
|
|
hsize_t total_chunks; /* Number of chunks covered by dataspace */
|
|
|
|
H5D_chunk_info_t **select_chunk; /* Store the information about whether this chunk is selected or not */
|
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
|
|
|
} H5D_chunk_map_t;
|
|
|
|
|
[svn-r14295] Description:
- Eliminate some redundant calls to retrieve datatype sizes in chunk read/
write routines.
- Change indexed storage "common" B-tree callback user data to avoid
copying chunk offset and separate "downward" info from "upward" info.
- Cache chunk info (nbytes/filter_mask/address) for last chunk accessed
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-27 16:19:42 -05:00
|
|
|
/* Cached information about a particular chunk */
|
2008-05-15 22:04:56 -05:00
|
|
|
typedef struct H5D_chunk_cached_t{
|
[svn-r14295] Description:
- Eliminate some redundant calls to retrieve datatype sizes in chunk read/
write routines.
- Change indexed storage "common" B-tree callback user data to avoid
copying chunk offset and separate "downward" info from "upward" info.
- Cache chunk info (nbytes/filter_mask/address) for last chunk accessed
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-27 16:19:42 -05:00
|
|
|
hbool_t valid; /*whether cache info is valid*/
|
|
|
|
hsize_t offset[H5O_LAYOUT_NDIMS]; /*logical offset to start*/
|
2008-05-15 22:04:56 -05:00
|
|
|
uint32_t nbytes; /*size of stored data */
|
[svn-r14295] Description:
- Eliminate some redundant calls to retrieve datatype sizes in chunk read/
write routines.
- Change indexed storage "common" B-tree callback user data to avoid
copying chunk offset and separate "downward" info from "upward" info.
- Cache chunk info (nbytes/filter_mask/address) for last chunk accessed
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-27 16:19:42 -05:00
|
|
|
unsigned filter_mask; /*excluded filters */
|
|
|
|
haddr_t addr; /*file address of chunk */
|
|
|
|
} H5D_chunk_cached_t;
|
|
|
|
|
2004-06-05 14:04:49 -05:00
|
|
|
/* The raw data chunk cache */
|
|
|
|
typedef struct H5D_rdcc_t {
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
struct {
|
|
|
|
unsigned ninits; /* Number of chunk creations */
|
|
|
|
unsigned nhits; /* Number of cache hits */
|
|
|
|
unsigned nmisses;/* Number of cache misses */
|
|
|
|
unsigned nflushes;/* Number of cache flushes */
|
|
|
|
} stats;
|
2009-02-12 15:46:32 -05:00
|
|
|
size_t nbytes_max; /* Maximum cached raw data in bytes */
|
2004-06-05 14:04:49 -05:00
|
|
|
size_t nslots; /* Number of chunk slots allocated */
|
2008-11-12 13:07:51 -05:00
|
|
|
double w0; /* Chunk preemption policy */
|
2004-06-05 14:04:49 -05:00
|
|
|
struct H5D_rdcc_ent_t *head; /* Head of doubly linked list */
|
|
|
|
struct H5D_rdcc_ent_t *tail; /* Tail of doubly linked list */
|
2009-02-12 15:46:32 -05:00
|
|
|
size_t nbytes_used; /* Current cached raw data in bytes */
|
2004-06-05 14:04:49 -05:00
|
|
|
int nused; /* Number of chunk slots in use */
|
[svn-r14295] Description:
- Eliminate some redundant calls to retrieve datatype sizes in chunk read/
write routines.
- Change indexed storage "common" B-tree callback user data to avoid
copying chunk offset and separate "downward" info from "upward" info.
- Cache chunk info (nbytes/filter_mask/address) for last chunk accessed
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-11-27 16:19:42 -05:00
|
|
|
H5D_chunk_cached_t last; /* Cached copy of last chunk information */
|
2004-06-05 14:04:49 -05:00
|
|
|
struct H5D_rdcc_ent_t **slot; /* Chunk slots, each points to a chunk*/
|
[svn-r14334] Description:
- Avoid trying to update 1-D dataset's chunk indices (they can't change)
- Cache a copy of a dataspace describing a chunk, when doing single
element I/O
- Keep a 'chunk info' struct around, for single element I/O
- Avoid creating a skip list for chunk infos when performing I/O on single
element
Also, minor formatting cleanups to testing code
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-10 16:38:03 -05:00
|
|
|
H5SL_t *sel_chunks; /* Skip list containing information for each chunk selected */
|
|
|
|
H5S_t *single_space; /* Dataspace for single element I/O on chunks */
|
|
|
|
H5D_chunk_info_t *single_chunk_info; /* Pointer to single chunk's info */
|
2004-06-05 14:04:49 -05:00
|
|
|
} H5D_rdcc_t;
|
|
|
|
|
|
|
|
/* The raw data contiguous data cache */
|
|
|
|
typedef struct H5D_rdcdc_t {
|
|
|
|
unsigned char *sieve_buf; /* Buffer to hold data sieve buffer */
|
|
|
|
haddr_t sieve_loc; /* File location (offset) of the data sieve buffer */
|
|
|
|
size_t sieve_size; /* Size of the data sieve buffer used (in bytes) */
|
|
|
|
size_t sieve_buf_size; /* Size of the data sieve buffer allocated (in bytes) */
|
|
|
|
unsigned sieve_dirty; /* Flag to indicate that the data sieve buffer is dirty */
|
|
|
|
} H5D_rdcdc_t;
|
|
|
|
|
2003-05-07 16:52:24 -05:00
|
|
|
/*
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-28 14:04:19 -05:00
|
|
|
* A dataset is made of two layers, an H5D_t struct that is unique to
|
|
|
|
* each instance of an opened datset, and a shared struct that is only
|
|
|
|
* created once for a given dataset. Thus, if a dataset is opened twice,
|
|
|
|
* there will be two IDs and two H5D_t structs, both sharing one H5D_shared_t.
|
2003-05-07 16:52:24 -05:00
|
|
|
*/
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-28 14:04:19 -05:00
|
|
|
typedef struct H5D_shared_t {
|
2008-09-10 14:10:41 -05:00
|
|
|
size_t fo_count; /* Reference count */
|
2004-07-03 15:03:09 -05:00
|
|
|
hid_t type_id; /* ID for dataset's datatype */
|
2008-09-10 14:10:41 -05:00
|
|
|
H5T_t *type; /* Datatype for this dataset */
|
|
|
|
H5S_t *space; /* Dataspace of this dataset */
|
2007-11-10 09:51:30 -05:00
|
|
|
hbool_t space_dirty; /* Whether the dataspace info needs to be flushed to the file */
|
[svn-r14326] Description:
- Keep skip list for tracking chunks with dataset (instead of creating/
destroying it for each I/O operation) and just delete the skip list
nodes.
- Avoid computations for normalizing selection offset when offset not set.
- Avoid updating object modification time twice during dataset creation.
- Avoid updating dataset layout message (and object modification time)
until dataset is closed.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-06 14:24:30 -05:00
|
|
|
hbool_t layout_dirty; /* Whether the layout info needs to be flushed to the file */
|
2008-09-10 14:10:41 -05:00
|
|
|
hid_t dcpl_id; /* Dataset creation property id */
|
2004-04-07 13:16:22 -05:00
|
|
|
H5D_dcpl_cache_t dcpl_cache; /* Cached DCPL values */
|
2008-09-10 14:10:41 -05:00
|
|
|
H5O_layout_t layout; /* Data layout */
|
2004-07-01 12:38:04 -05:00
|
|
|
hbool_t checked_filters;/* TRUE if dataset passes can_apply check */
|
2004-06-05 14:04:49 -05:00
|
|
|
|
|
|
|
/* Buffered/cached information for types of raw data storage*/
|
2004-08-17 02:30:18 -05:00
|
|
|
struct {
|
2004-06-05 14:04:49 -05:00
|
|
|
H5D_rdcdc_t contig; /* Information about contiguous data */
|
2004-08-17 02:30:18 -05:00
|
|
|
/* (Note that the "contig" cache
|
|
|
|
* information can be used by a chunked
|
|
|
|
* dataset in certain circumstances)
|
|
|
|
*/
|
2004-06-05 14:04:49 -05:00
|
|
|
H5D_rdcc_t chunk; /* Information about chunked data */
|
2004-10-01 18:00:42 -05:00
|
|
|
} cache;
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-28 14:04:19 -05:00
|
|
|
} H5D_shared_t;
|
|
|
|
|
|
|
|
struct H5D_t {
|
2005-11-14 21:55:39 -05:00
|
|
|
H5O_loc_t oloc; /* Object header location */
|
|
|
|
H5G_name_t path; /* Group hierarchy path */
|
[svn-r9329]
Purpose:
Feature
Description:
Datatypes and groups now use H5FO "file object" code that was previously
only used by datasets. These objects will hold a file open if the file
is closed but they have not yet been closed. If these objects are unlinked
then relinked, they will not be destroyed. If they are opened twice (even
by two different names), both IDs will "see" changes made to the object
using the other ID.
When an object is opened using two different names (e.g., if a dataset was
opened under one name, then mounted and opened under its new name), calling
H5Iget_name() on a given hid_t will return the name used to open that hid_t,
not the current name of the object (this is a feature, and a change from the
previous behavior of datasets).
Solution:
Used H5FO code that was already in place for datasets. Broke H5D_t's, H5T_t's,
and H5G_t's into a "shared" struct and a private struct. The shared structs
(H5D_shared_t, etc.) hold the object's information and are used by all IDs
that point to a given object in the file. The private structs are pointed
to by the hid_t and contain the object's group entry information (including its
name) and a pointer to the shared struct for that object.
This changed the naming of structs throughout the library (e.g., datatype->size
is now datatype->shared->size). I added an updated H5Tinit.c to windows.zip.
Platforms tested:
Visual Studio 7, sleipnir, arabica, verbena
Misc. update:
2004-09-28 14:04:19 -05:00
|
|
|
H5D_shared_t *shared; /* cached information from file */
|
2003-05-07 16:52:24 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Enumerated type for allocating dataset's storage */
|
|
|
|
typedef enum {
|
|
|
|
H5D_ALLOC_CREATE, /* Dataset is being created */
|
|
|
|
H5D_ALLOC_OPEN, /* Dataset is being opened */
|
|
|
|
H5D_ALLOC_EXTEND, /* Dataset's dataspace is being extended */
|
|
|
|
H5D_ALLOC_WRITE /* Dataset is being extended */
|
|
|
|
} H5D_time_alloc_t;
|
|
|
|
|
2006-02-16 12:08:34 -05:00
|
|
|
|
2007-04-11 11:22:16 -05:00
|
|
|
/* Typedef for dataset creation operation */
|
|
|
|
typedef struct {
|
|
|
|
hid_t type_id; /* Datatype for dataset */
|
|
|
|
const H5S_t *space; /* Dataspace for dataset */
|
|
|
|
hid_t dcpl_id; /* Dataset creation property list */
|
2008-11-12 13:07:51 -05:00
|
|
|
hid_t dapl_id; /* Dataset access property list */
|
2007-04-11 11:22:16 -05:00
|
|
|
} H5D_obj_create_t;
|
|
|
|
|
2007-06-26 12:46:35 -05:00
|
|
|
/* Typedef for filling a buffer with a fill value */
|
2008-09-10 14:10:41 -05:00
|
|
|
typedef struct H5D_fill_buf_info_t {
|
2007-06-26 12:46:35 -05:00
|
|
|
hbool_t alloc_vl_during_refill; /* Whether to allocate VL-datatype fill buffer during refill */
|
|
|
|
H5MM_allocate_t fill_alloc_func; /* Routine to call for allocating fill buffer */
|
|
|
|
void *fill_alloc_info; /* Extra info for allocation routine */
|
|
|
|
H5MM_free_t fill_free_func; /* Routine to call for freeing fill buffer */
|
|
|
|
void *fill_free_info; /* Extra info for free routine */
|
|
|
|
H5T_path_t *fill_to_mem_tpath; /* Datatype conversion path for converting the fill value to the memory buffer */
|
|
|
|
H5T_path_t *mem_to_dset_tpath; /* Datatype conversion path for converting the memory buffer to the dataset elements */
|
|
|
|
const H5O_fill_t *fill; /* Pointer to fill value */
|
|
|
|
void *fill_buf; /* Fill buffer */
|
|
|
|
size_t fill_buf_size; /* Size of fill buffer */
|
|
|
|
hbool_t use_caller_fill_buf; /* Whether the caller provided the fill buffer */
|
|
|
|
void *bkg_buf; /* Background conversion buffer */
|
|
|
|
size_t bkg_buf_size; /* Size of background buffer */
|
|
|
|
H5T_t *mem_type; /* Pointer to memory datatype */
|
|
|
|
const H5T_t *file_type; /* Pointer to file datatype */
|
|
|
|
hid_t mem_tid; /* ID for memory version of disk datatype */
|
|
|
|
hid_t file_tid; /* ID for disk datatype */
|
|
|
|
size_t mem_elmt_size, file_elmt_size; /* Size of element in memory and on disk */
|
|
|
|
size_t max_elmt_size; /* Max. size of memory or file datatype */
|
|
|
|
size_t elmts_per_buf; /* # of elements that fit into a buffer */
|
|
|
|
hbool_t has_vlen_fill_type; /* Whether the datatype for the fill value has a variable-length component */
|
|
|
|
} H5D_fill_buf_info_t;
|
|
|
|
|
[svn-r14203] Description:
Break up H5D source file into H5D/H5Dint/H5Ddeprec
Attempt fix for "szip noencoder" build failure.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 17:24:35 -05:00
|
|
|
/* Internal data structure for computing variable-length dataset's total size */
|
|
|
|
typedef struct {
|
|
|
|
hid_t dataset_id; /* ID of the dataset we are working on */
|
|
|
|
hid_t fspace_id; /* ID of the file dataset's dataspace we are working on */
|
|
|
|
hid_t mspace_id; /* ID of the memory dataset's dataspace we are working on */
|
|
|
|
void *fl_tbuf; /* Ptr to the temporary buffer we are using for fixed-length data */
|
|
|
|
void *vl_tbuf; /* Ptr to the temporary buffer we are using for VL data */
|
|
|
|
hid_t xfer_pid; /* ID of the dataset xfer property list */
|
|
|
|
hsize_t size; /* Accumulated number of bytes for the selection */
|
|
|
|
} H5D_vlen_bufsize_t;
|
|
|
|
|
2008-04-30 14:51:13 -05:00
|
|
|
/* Raw data chunks are cached. Each entry in the cache is: */
|
|
|
|
typedef struct H5D_rdcc_ent_t {
|
|
|
|
hbool_t locked; /*entry is locked in cache */
|
|
|
|
hbool_t dirty; /*needs to be written to disk? */
|
|
|
|
hsize_t offset[H5O_LAYOUT_NDIMS]; /*chunk name */
|
2008-05-15 22:04:56 -05:00
|
|
|
uint32_t rd_count; /*bytes remaining to be read */
|
|
|
|
uint32_t wr_count; /*bytes remaining to be written */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
haddr_t chunk_addr; /*address of chunk in file */
|
2008-04-30 14:51:13 -05:00
|
|
|
uint8_t *chunk; /*the unfiltered chunk data */
|
|
|
|
unsigned idx; /*index in hash table */
|
|
|
|
struct H5D_rdcc_ent_t *next;/*next item in doubly-linked list */
|
|
|
|
struct H5D_rdcc_ent_t *prev;/*previous item in doubly-linked list */
|
|
|
|
} H5D_rdcc_ent_t;
|
|
|
|
typedef H5D_rdcc_ent_t *H5D_rdcc_ent_ptr_t; /* For free lists */
|
|
|
|
|
[svn-r14203] Description:
Break up H5D source file into H5D/H5Dint/H5Ddeprec
Attempt fix for "szip noencoder" build failure.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 17:24:35 -05:00
|
|
|
|
2004-04-07 13:16:22 -05:00
|
|
|
/*****************************/
|
|
|
|
/* Package Private Variables */
|
|
|
|
/*****************************/
|
|
|
|
extern H5D_dxpl_cache_t H5D_def_dxpl_cache;
|
|
|
|
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
/* Storage layout class I/O operations */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5_DLLVAR const H5D_layout_ops_t H5D_LOPS_CONTIG[1];
|
|
|
|
H5_DLLVAR const H5D_layout_ops_t H5D_LOPS_EFL[1];
|
|
|
|
H5_DLLVAR const H5D_layout_ops_t H5D_LOPS_COMPACT[1];
|
|
|
|
H5_DLLVAR const H5D_layout_ops_t H5D_LOPS_CHUNK[1];
|
|
|
|
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
/* Chunked layout operations */
|
[svn-r16182] Description:
Rename internal routines, variables, macros, typedefs, etc. for chunked
dataset storage from "istore" to some variant of "chunk" or "btree".
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (jam) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-12-11 14:29:44 -05:00
|
|
|
H5_DLLVAR const H5D_chunk_ops_t H5D_COPS_BTREE[1];
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
|
2007-04-11 11:22:16 -05:00
|
|
|
|
2003-05-15 14:22:33 -05:00
|
|
|
/******************************/
|
|
|
|
/* Package Private Prototypes */
|
|
|
|
/******************************/
|
|
|
|
|
2007-04-11 11:22:16 -05:00
|
|
|
H5_DLL H5D_t *H5D_create(H5F_t *file, hid_t type_id, const H5S_t *space,
|
2008-11-12 13:07:51 -05:00
|
|
|
hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id);
|
2007-04-11 11:22:16 -05:00
|
|
|
H5_DLL H5D_t *H5D_create_named(const H5G_loc_t *loc, const char *name,
|
|
|
|
hid_t type_id, const H5S_t *space, hid_t lcpl_id, hid_t dcpl_id,
|
|
|
|
hid_t dapl_id, hid_t dxpl_id);
|
[svn-r14203] Description:
Break up H5D source file into H5D/H5Dint/H5Ddeprec
Attempt fix for "szip noencoder" build failure.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 17:24:35 -05:00
|
|
|
H5_DLL herr_t H5D_get_space_status(H5D_t *dset, H5D_space_status_t *allocation,
|
|
|
|
hid_t dxpl_id);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5_DLL herr_t H5D_alloc_storage(H5D_t *dset, hid_t dxpl_id, H5D_time_alloc_t time_alloc,
|
[svn-r14326] Description:
- Keep skip list for tracking chunks with dataset (instead of creating/
destroying it for each I/O operation) and just delete the skip list
nodes.
- Avoid computations for normalizing selection offset when offset not set.
- Avoid updating object modification time twice during dataset creation.
- Avoid updating dataset layout message (and object modification time)
until dataset is closed.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2007-12-06 14:24:30 -05:00
|
|
|
hbool_t full_overwrite);
|
[svn-r14203] Description:
Break up H5D source file into H5D/H5Dint/H5Ddeprec
Attempt fix for "szip noencoder" build failure.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.4.10 (amazon) in debug mode
2007-10-11 17:24:35 -05:00
|
|
|
H5_DLL hsize_t H5D_get_storage_size(H5D_t *dset, hid_t dxpl_id);
|
|
|
|
H5_DLL haddr_t H5D_get_offset(const H5D_t *dset);
|
|
|
|
H5_DLL herr_t H5D_iterate(void *buf, hid_t type_id, const H5S_t *space,
|
|
|
|
H5D_operator_t op, void *operator_data);
|
|
|
|
H5_DLL void * H5D_vlen_get_buf_size_alloc(size_t size, void *info);
|
|
|
|
H5_DLL herr_t H5D_vlen_get_buf_size(void *elem, hid_t type_id, unsigned ndim,
|
|
|
|
const hsize_t *point, void *op_data);
|
|
|
|
H5_DLL herr_t H5D_check_filters(H5D_t *dataset);
|
|
|
|
H5_DLL herr_t H5D_set_extent(H5D_t *dataset, const hsize_t *size, hid_t dxpl_id);
|
2008-04-30 14:51:13 -05:00
|
|
|
H5_DLL herr_t H5D_get_dxpl_cache(hid_t dxpl_id, H5D_dxpl_cache_t **cache);
|
|
|
|
|
|
|
|
/* Functions that perform direct serial I/O operations */
|
|
|
|
H5_DLL herr_t H5D_select_read(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
H5_DLL herr_t H5D_select_write(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
|
|
|
|
/* Functions that perform scatter-gather serial I/O operations */
|
|
|
|
H5_DLL herr_t H5D_scatter_mem(const void *_tscat_buf,
|
2004-10-01 18:00:42 -05:00
|
|
|
const H5S_t *space, H5S_sel_iter_t *iter, size_t nelmts,
|
2008-04-30 14:51:13 -05:00
|
|
|
const H5D_dxpl_cache_t *dxpl_cache, void *_buf);
|
|
|
|
H5_DLL herr_t H5D_scatgath_read(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
H5_DLL herr_t H5D_scatgath_write(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
2004-10-01 18:00:42 -05:00
|
|
|
|
2004-06-05 14:04:49 -05:00
|
|
|
/* Functions that operate on contiguous storage */
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5_DLL herr_t H5D_contig_alloc(H5F_t *f, hid_t dxpl_id, H5O_layout_t *layout);
|
2004-09-29 22:46:58 -05:00
|
|
|
H5_DLL herr_t H5D_contig_fill(H5D_t *dset, hid_t dxpl_id);
|
2004-10-01 18:00:42 -05:00
|
|
|
H5_DLL haddr_t H5D_contig_get_addr(const H5D_t *dset);
|
2008-04-30 14:51:13 -05:00
|
|
|
H5_DLL herr_t H5D_contig_read(H5D_io_info_t *io_info, const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space,
|
|
|
|
H5D_chunk_map_t *fm);
|
|
|
|
H5_DLL herr_t H5D_contig_write(H5D_io_info_t *io_info, const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space,
|
|
|
|
H5D_chunk_map_t *fm);
|
2004-12-29 09:26:20 -05:00
|
|
|
H5_DLL ssize_t H5D_contig_readvv(const H5D_io_info_t *io_info,
|
2004-10-01 18:00:42 -05:00
|
|
|
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_offset_arr[],
|
2008-04-30 14:51:13 -05:00
|
|
|
size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_offset_arr[]);
|
2004-12-29 09:26:20 -05:00
|
|
|
H5_DLL ssize_t H5D_contig_writevv(const H5D_io_info_t *io_info,
|
2004-10-01 18:00:42 -05:00
|
|
|
size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_len_arr[], hsize_t dset_offset_arr[],
|
2008-04-30 14:51:13 -05:00
|
|
|
size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_len_arr[], hsize_t mem_offset_arr[]);
|
2008-09-16 10:52:51 -05:00
|
|
|
H5_DLL herr_t H5D_contig_copy(H5F_t *f_src, const H5O_layout_t *layout_src, H5F_t *f_dst,
|
2006-09-25 17:22:14 -05:00
|
|
|
H5O_layout_t *layout_dst, H5T_t *src_dtype, H5O_copy_t *cpy_info, hid_t dxpl_id);
|
2004-10-01 18:00:42 -05:00
|
|
|
|
2008-04-30 14:51:13 -05:00
|
|
|
/* Functions that operate on chunked dataset storage */
|
2009-02-27 12:01:00 -05:00
|
|
|
H5_DLL htri_t H5D_chunk_cacheable(const H5D_io_info_t *io_info, haddr_t caddr,
|
|
|
|
hbool_t write_op);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5_DLL herr_t H5D_chunk_cinfo_cache_reset(H5D_chunk_cached_t *last);
|
|
|
|
H5_DLL herr_t H5D_chunk_create(H5D_t *dset /*in,out*/, hid_t dxpl_id);
|
2008-11-12 13:07:51 -05:00
|
|
|
H5_DLL herr_t H5D_chunk_init(H5F_t *f, hid_t dapl_id, hid_t dxpl_id, const H5D_t *dset);
|
2009-01-27 09:00:07 -05:00
|
|
|
H5_DLL hbool_t H5D_chunk_is_space_alloc(const H5O_layout_t *layout);
|
[svn-r15800] Description:
Bring file free space branch changes through r15795 into trunk, which
includes a fair bit of code cleanup & rearrangement along with a couple of
bug fixes also.
Tested on:
Mac OS X/32 10.5.5 (amazon) in debug mode
Mac OS X/32 10.5.5 (amazon) w/C++ & FORTRAN, w/threadsafe,
in production mode
FreeBSD/32 6.3 (duty) in debug mode
FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/Intel compilers w/default API=1.6.x,
w/C++ & FORTRAN, in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in production mode
2008-10-06 23:17:35 -05:00
|
|
|
H5_DLL herr_t H5D_chunk_get_info(const H5D_t *dset, hid_t dxpl_id,
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
const hsize_t *chunk_offset, H5D_chunk_ud_t *udata);
|
|
|
|
H5_DLL void *H5D_chunk_lock(const H5D_io_info_t *io_info,
|
|
|
|
H5D_chunk_ud_t *udata, hbool_t relax, unsigned *idx_hint/*in,out*/);
|
|
|
|
H5_DLL herr_t H5D_chunk_unlock(const H5D_io_info_t *io_info,
|
2009-03-02 15:57:18 -05:00
|
|
|
const H5D_chunk_ud_t *udata, hbool_t dirty, unsigned idx_hint, void *chunk,
|
|
|
|
uint32_t naccessed);
|
[svn-r15131] Description:
Finish omnibus chunked dataset I/O refactoring, to separate general
actions on chunked datasets from actions that are specific to using the v1
B-tree index.
Cleaned up a few bugs and added some additional tests also.
Tested on:
FreeBSD/32 6.2 (duty) in debug mode
FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode
Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe,
in debug mode
Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN,
in production mode
Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN,
in production mode
Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN,
w/szip filter, in production mode
Mac OS X/32 10.5.2 (amazon) in debug mode
Linux/64-ia64 2.4 (tg-login3) w/parallel, w/FORTRAN, in production mode
2008-06-03 14:44:12 -05:00
|
|
|
H5_DLL herr_t H5D_chunk_flush(H5D_t *dset, hid_t dxpl_id, unsigned flags);
|
|
|
|
H5_DLL herr_t H5D_chunk_allocated(H5D_t *dset, hid_t dxpl_id, hsize_t *nbytes);
|
|
|
|
H5_DLL herr_t H5D_chunk_allocate(H5D_t *dset, hid_t dxpl_id, hbool_t full_overwrite);
|
|
|
|
H5_DLL herr_t H5D_chunk_prune_by_extent(H5D_t *dset, hid_t dxpl_id,
|
|
|
|
const hsize_t *old_dims);
|
|
|
|
#ifdef H5_HAVE_PARALLEL
|
|
|
|
H5_DLL herr_t H5D_chunk_addrmap(const H5D_io_info_t *io_info,
|
|
|
|
haddr_t chunk_addr[], const hsize_t down_chunks[]);
|
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
|
|
|
H5_DLL herr_t H5D_chunk_update_cache(H5D_t *dset, hid_t dxpl_id);
|
|
|
|
H5_DLL herr_t H5D_chunk_copy(H5F_t *f_src, H5O_layout_t *layout_src,
|
|
|
|
H5F_t *f_dst, H5O_layout_t *layout_dst, H5T_t *src_dtype,
|
|
|
|
H5O_copy_t *cpy_info, H5O_pline_t *pline, hid_t dxpl_id);
|
|
|
|
H5_DLL herr_t H5D_chunk_bh_info(H5F_t *f, hid_t dxpl_id, H5O_layout_t *layout,
|
|
|
|
hsize_t *btree_size);
|
|
|
|
H5_DLL herr_t H5D_chunk_dump_index(H5D_t *dset, hid_t dxpl_id, FILE *stream);
|
|
|
|
H5_DLL herr_t H5D_chunk_dest(H5F_t *f, hid_t dxpl_id, H5D_t *dset);
|
|
|
|
#ifdef H5D_CHUNK_DEBUG
|
|
|
|
H5_DLL herr_t H5D_chunk_stats(const H5D_t *dset, hbool_t headers);
|
|
|
|
#endif /* H5D_CHUNK_DEBUG */
|
2008-04-30 14:51:13 -05:00
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
/* Functions that operate on compact dataset storage */
|
2007-06-07 22:06:56 -05:00
|
|
|
H5_DLL herr_t H5D_compact_fill(H5D_t *dset, hid_t dxpl_id);
|
2006-09-25 17:22:14 -05:00
|
|
|
H5_DLL herr_t H5D_compact_copy(H5F_t *f_src, H5O_layout_t *layout_src,
|
|
|
|
H5F_t *f_dst, H5O_layout_t *layout_dst, H5T_t *src_dtype, H5O_copy_t *cpy_info, hid_t dxpl_id);
|
2004-06-05 14:04:49 -05:00
|
|
|
|
2007-06-26 12:46:35 -05:00
|
|
|
/* Functions that perform fill value operations on datasets */
|
|
|
|
H5_DLL herr_t H5D_fill(const void *fill, const H5T_t *fill_type, void *buf,
|
|
|
|
const H5T_t *buf_type, const H5S_t *space, hid_t dxpl_id);
|
|
|
|
H5_DLL herr_t H5D_fill_init(H5D_fill_buf_info_t *fb_info, void *caller_fill_buf,
|
|
|
|
hbool_t alloc_vl_during_refill,
|
|
|
|
H5MM_allocate_t alloc_func, void *alloc_info,
|
|
|
|
H5MM_free_t free_func, void *free_info,
|
|
|
|
const H5O_fill_t *fill, const H5T_t *dset_type, hid_t dset_type_id,
|
|
|
|
size_t nelmts, size_t min_buf_size, hid_t dxpl_id);
|
|
|
|
H5_DLL herr_t H5D_fill_refill_vl(H5D_fill_buf_info_t *fb_info, size_t nelmts,
|
|
|
|
hid_t dxpl_id);
|
|
|
|
H5_DLL herr_t H5D_fill_release(H5D_fill_buf_info_t *fb_info);
|
|
|
|
H5_DLL herr_t H5D_fill_term(H5D_fill_buf_info_t *fb_info);
|
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
#ifdef H5_HAVE_PARALLEL
|
[svn-r11231] Purpose:
bug fix for collective chunk IO, phase 1
Optimization hasn't been done yet, the collective chunk IO bug should be fixed.
Description:
In chunking storage, memory space and file space will be remapped, So to check
whether file space and memory space are regular in order to use optimized MPI derived
datatype for collective call one has to check per-chunk wise instead of per hyperslab wise.
Even a regular memory space will be stored in span-tree and will be irregular before chunk IO.
Solution:
1. Check file space and memory space per chunk wise instead of per hyperslab wise.
2. For collective IO mode, number of chunks covered by hyperslab may be different. Since we are
handing per chunk per IO, for the extra chunk IO for some(not all) processors, collective mode will
cause program hanged. So for the extra chunk Io mode independent IO has to be used.
3. On some platforms, Complex MPI derived datatype is not working, so we have to use independent IO for collective IO mode if the selection is irregular. However, when the selection is regular, we do want to use collective IO since that will improve performance. Special cares have to be added for this case.
Platforms tested:
copper(AIX 5.1) Linux(heping mpich 1.2.6), Teragrid machine, Cobalt(altix), modi4
Misc. update:
2005-08-11 13:48:09 -05:00
|
|
|
|
2006-10-06 11:18:22 -05:00
|
|
|
#ifdef H5S_DEBUG
|
|
|
|
#ifndef H5Dmpio_DEBUG
|
|
|
|
#define H5Dmpio_DEBUG
|
|
|
|
#endif /*H5Dmpio_DEBUG*/
|
|
|
|
#endif/*H5S_DEBUG*/
|
2008-04-30 14:51:13 -05:00
|
|
|
/* MPI-IO function to read, it will select either regular or irregular read */
|
|
|
|
H5_DLL herr_t H5D_mpio_select_read(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
|
|
|
|
/* MPI-IO function to write, it will select either regular or irregular read */
|
|
|
|
H5_DLL herr_t H5D_mpio_select_write(const H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info,
|
|
|
|
hsize_t nelmts, const H5S_t *file_space, const H5S_t *mem_space);
|
|
|
|
|
|
|
|
/* MPI-IO functions to handle contiguous collective IO */
|
|
|
|
H5_DLL herr_t H5D_contig_collective_read(H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, H5D_chunk_map_t *fm);
|
|
|
|
H5_DLL herr_t H5D_contig_collective_write(H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, H5D_chunk_map_t *fm);
|
|
|
|
|
|
|
|
/* MPI-IO functions to handle chunked collective IO */
|
|
|
|
H5_DLL herr_t H5D_chunk_collective_read(H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, H5D_chunk_map_t *fm);
|
|
|
|
H5_DLL herr_t H5D_chunk_collective_write(H5D_io_info_t *io_info,
|
|
|
|
const H5D_type_info_t *type_info, hsize_t nelmts, const H5S_t *file_space,
|
|
|
|
const H5S_t *mem_space, H5D_chunk_map_t *fm);
|
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
/* MPI-IO function to check if a direct I/O transfer is possible between
|
|
|
|
* memory and the file */
|
2008-04-30 14:51:13 -05:00
|
|
|
H5_DLL htri_t H5D_mpio_opt_possible(const H5D_io_info_t *io_info,
|
|
|
|
const H5S_t *file_space, const H5S_t *mem_space,
|
|
|
|
const H5D_type_info_t *type_info, const H5D_chunk_map_t *fm);
|
2006-02-16 12:08:34 -05:00
|
|
|
|
2004-10-01 18:00:42 -05:00
|
|
|
#endif /* H5_HAVE_PARALLEL */
|
2004-06-05 14:04:49 -05:00
|
|
|
|
2004-05-27 15:24:08 -05:00
|
|
|
/* Testing functions */
|
|
|
|
#ifdef H5D_TESTING
|
|
|
|
H5_DLL herr_t H5D_layout_version_test(hid_t did, unsigned *version);
|
|
|
|
H5_DLL herr_t H5D_layout_contig_size_test(hid_t did, hsize_t *size);
|
2009-02-12 15:46:32 -05:00
|
|
|
H5_DLL herr_t H5D_current_cache_size_test(hid_t did, size_t *nbytes_used, int *nused);
|
2004-05-27 15:24:08 -05:00
|
|
|
#endif /* H5D_TESTING */
|
|
|
|
|
2003-05-07 16:52:24 -05:00
|
|
|
#endif /*_H5Dpkg_H*/
|
2005-10-21 10:52:54 -05:00
|
|
|
|