Applications/Hdf5

From HPC
Revision as of 09:22, 24 April 2017 by Pysdlb (talk | contribs) (Pysdlb moved page Hdf5 to Applications/Hdf5 without leaving a redirect)

Jump to: navigation , search

Application Details

  • Description: HDF5 is a data model, library, and file format for storing and managing data.
  • Version: 1.8.16 and 1.8.17 (compiled with gcc and intel)
  • Module: hdf5/gcc/intelmpi/1.8.16, hdf5/gcc/intelmpi/1.8.17, hdf5/gcc/openmpi/1.8.17, hdf5/gcc/openmpi/1.8.17-serial, hdf5/gcc/serial/1.8.16, hdf5/gcc/serial/1.8.17, hdf5/intel/intelmpi/1.8.16, hdf5/intel/openmpi/1.8.16 and hdf5/intel/serial/1.8.16.
  • Licence: GNU

Usage Examples

HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.

Module

[username@login01 ~]$ module add hdf5/gcc/intelmpi/1.8.16

Compilation

hdf5 is a library (for compilation time).

A typical C code snippet requiring is shown below:


#include "hdf5.h"
#define FILE "dset.h5"

int main() {

   hid_t       file_id, dataset_id, dataspace_id;  /* identifiers */
   hsize_t     dims[2];
   herr_t      status;

   /* Create a new file using default properties. */
   file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);

   /* Create the data space for the dataset. */
   dims[0] = 4; 
   dims[1] = 6; 
   dataspace_id = H5Screate_simple(2, dims, NULL);

   /* Create the dataset. */
   dataset_id = H5Dcreate2(file_id, "/dset", H5T_STD_I32BE, dataspace_id, 
                          H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
...

Compilation with gcc is as follows:

[username@login01 ~]$  gcc hdfDEMO.c -o hdfDEMO -lsz -lz -lm


Further Information

Icon home.png