HDF5lib

hdf5 serial (default)

module load hdf5/1.8.17-system

hdf5parallel (MPI)

module load hdf5/1.7.17-system-mpi

HOWTO USE

Example Makefile

Makefile
CXX=/usr/bin/g++-4.9
 
# Flags for the C++ compiler
CFLAGS=-Wall -ansi -pedantic -O3 -std=c++11 
 
INC= -I${HDF5_INCLUDE} 
LIB= -L${HDF5_LIB} -lhdf5 -lhdf5_cpp -L${ZLIB_DIR}  -ldl -lz  
 
# List of executables
EXECUTABLES=voro
 
# Makefile rules
all: $(EXECUTABLES)
 
voro: random_points.cc
	$(CXX) $(CFLAGS) -o voro random_points.cc $(LIB) $(INC) 
 
clean:
	rm -f $(EXECUTABLES)
 
.PHONY: all clean

HOWTO BUILD

/usr/net/lib/hdf5-1.8.14-gcc4.9

export FC=/usr/bin/gfortran-4.9;
export CXX=/usr/bin/g++-4.9;
export CC='/usr/bin/gcc-4.9 -m64';
./configure --prefix=/usr/net/lib/hdf5-1.8.14-gcc4.9 --enable-cxx --enable-fortran --enable-production --with-szlib=/usr/net/lib/zlib-1.2.8
make -j $OMP_NUM_THREADS all
make check
make install
Log In