Child pages
  • Mox_building_hdf5
Skip to end of metadata
Go to start of metadata

See also Mox_building_netcdf

Below are steps to build hdf5 libraries. HDF5 is a pre-req for netCDF. Here xyz is your hyak group and abc is your hyak userid.

(The Fortran .mod files produced by different compilers are not compatible. Each time you use a different compiler, you should download the source code for HDF5 and netcdf again and keep it in different new directories. Then you can follow the instructions in this page.)

(1) srun -p build --time=4:00:00 --mem=10G --pty /bin/bash

(2) module load gcc/8.2.1

(You can load a gcc or icc module of your choice, Above is only an example. "module avail gcc" and "module avail icc" will give you the choices.)

(3) mkdir /gscratch/xyz/abc/hdf5stuff

(4) mkdir /gscratch/xyz/abc/hdf5install

(5) cd /gscratch/xyz/abc/hdf5stuff

(6) wget

(7) tar -xvf hdf5-1.10.5.tar.gz

(8) export H5DIR=/gscratch/xyz/abc/hdf5install

(9) cd hdf5-1.10.5

(10) ./configure --prefix=${H5DIR} --enable-hl

(11) make

(12) make install

(13) The hdf5 libraries are in /gscratch/xyz/abc/hdf5install/lib

       The hdf5 commands (like h5dump) are in /gscratch/xyz/abc/hdf5install/bin

       The hdf5 header files are in /gscratch/xyz/abc/hdf5install/include

  • No labels