module load intel/2022.2
module load openmpi/intel/4.1.4
export VER=1.12.2
export COMPILER=intel.22
export CC=mpicc
export CXX=mpicxx
export F77=mpifort
export FC=mpifort
export SLURM_CPU_BIND=none
#export I_MPI_HYDRA_TOPOLIB=ipl
#export I_MPI_HYDRA_BRANCH_COUNT=-1
#export I_MPI_FABRICS=ofi
#export I_MPI_SHM_CELL_BWD_SIZE=2048000
export COMPOPT="-fPIC -O3 -qopt-zmm-usage=high -march=skylake-avx512 -xskylake-avx512 -mtune=skylake-avx512 -mcmodel=medium -fargument-noalias-global -fp-model precise -shared-intel"
export BUILDDIR=build_hdf5_ompi_$COMPILER
mkdir $BUILDDIR
cd $BUILDDIR
parentdir="$(dirname "$(pwd)")"
echo "building in "$BUILDDIR
export PREFIX=/sw/dataformats/hdf5-parallel/ompi/$COMPILER/$VER/skl
echo "building for "$PREFIX
echo "Press ENTER to configure";read aaa
export SZIP=$PREFIX
export LD_RUN_PATH=$PREFIX/lib:$LIBRARY_PATH
export CFLAGS=" $COMPOPT -align -Wl,-rpath=$LD_RUN_PATH"
export CXXFLAGS="$COMPOPT -align -Wl,-rpath=$LD_RUN_PATH"
export FCFLAGS=" $COMPOPT -align array64byte -Wl,-rpath=$LD_RUN_PATH"
#export LDLAGS="-O3 -fPIC"
#Set to true to make sure taht it is really switched off
export HDF5_USE_FILE_LOCKING="FALSE"
../hdf5-$VER/configure --prefix=$PREFIX --with-szlib=$SZIP --with-pic \
--enable-build-mode=production \
--enable-optimization=high \
--enable-parallel \
--enable-threadsafe --enable-unsupported \
--enable-direct-vfd --enable-mirror-vfd \
--enable-fortran --enable-cxx \
--disable-file-locking
# --enable-file-locking --enable-recursive-rw-locks \
echo "Press ENTER to run make";read aaa
make -j8 | tee comp.out
echo "Press ENTER to run make check";read aaa
make check | tee check.out 2>&1
echo "Press ENTER to run make install";read aaa
make install
echo "Do not forget to run make clean!"
Bereich verwalten
Inhalt verwalten
Integrationen