Browse Source

use more preinstalled modules for intel build

master
David Nolte 3 years ago
parent
commit
35be3b4d95
  1. 13
      batch_intel.job
  2. 7
      intel/build_all.sh
  3. 4
      intel/build_dolfin.sh
  4. 5
      intel/env_build.sh
  5. 4
      intel/setup_fenics_env.sh

13
batch_intel.job

@ -0,0 +1,13 @@
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=2
#SBATCH --time=05:00
#SBATCH --mem=8000
source $HOME/dev/fenics-2017.2.0.post0-intel2018a/bin/env_fenics_run.sh
export I_MPI_PMI_LIBRARY=/usr/lib64/libpmix.so
pew in fenics-2017.2.0.post0-intel2018a srun python poisson.py
# export SLURM_CPU_BIND=none
# pew in fenics-2017.2.0.post0-intel2018a mpirun python poisson.py

7
intel/build_all.sh

@ -8,7 +8,7 @@ export FENICS_VERSION="2017.2.0.post0"
# export FENICS_VERSION="master"
# TAG that specifies the name of the build directories and the virtualenv
export TAG="${FENICS_VERSION}-intel2018a"
export TAG="${FENICS_VERSION}-intel2018a-2"
export BUILD_THREADS=4
export PREFIX=${HOME}/dev/fenics-${TAG}
@ -23,11 +23,8 @@ export continue_on_key=false
echo "Installing FEniCS to ${PREFIX}"
./setup_virtualenv.sh # if not, make sure virtualenv fenics-${tag} exists!!
./build_cmake.sh
./build_hdf5.sh
./build_eigen.sh
./build_eigen.sh # replace this by system modules?
./build_petsc.sh
./build_swig.sh
./build_python_modules.sh
./build_fenics_pymodules.sh # ffc fiat ufl uflacs instant
./build_doxygen.sh # system version 1.8.8 not working with dolfin, 1.8.13 reported buggy, use 1.8.12 (sep2017)

4
intel/build_dolfin.sh

@ -38,15 +38,15 @@ cd $BUILD_DIR && \
-DDOLFIN_ENABLE_BENCHMARKS=ON \
-DDOLFIN_ENABLE_VTK=OFF \
-DZLIB_INCLUDE_DIR=${PREFIX}/include \
-DHDF5_ROOT=${PREFIX} \
-DZLIB_ROOT=${EBROOTZLIB} \
-DPETSC_INCLUDE_DIRS=${PREFIX}/include \
-DSWIG_EXECUTABLE:FILEPATH=${PREFIX}/bin/swig \
-DEIGEN3_INCLUDE_DIR:FILEPATH=${PREFIX}/include/eigen3 \
-DPETSC4PY_INCLUDE_DIRS=$(pew in fenics-${TAG} pew sitepackages_dir)/petsc4py/include \
2>&1 | tee cmake.log && \
pew in fenics-${TAG} make -j ${BUILD_THREADS} && \
pew in fenics-${TAG} make install
# -DHDF5_ROOT=${EB} \
# -DSWIG_EXECUTABLE:FILEPATH=${PREFIX}/bin/swig \
# -DSLEPC_INCLUDE_DIRS=${PREFIX}/include \
# -DZLIB_LIBRARY_RELEASE=${PREFIX}/lib/libz.so \

5
intel/env_build.sh

@ -3,10 +3,13 @@
echo "setting build environment"
module load Python/3.6.4-intel-2018a
module load CMake/3.11.1-GCCcore-6.4.0
module load Boost/1.66.0-intel-2018a-Python-3.6.4
module load Bison/3.0.4-GCCcore-6.4.0
module load flex/2.6.4-GCCcore-6.4.0
# module load CMake
module load HDF5/1.10.1-intel-2018a
# module load Doxygen/1.8.13-GCCcore-6.4.0
module load SWIG/3.0.12-intel-2018a-Python-3.6.4
module load Szip
export CC=icc

4
intel/setup_fenics_env.sh

@ -19,9 +19,13 @@ echo "# source file of the fenics-${TAG} environment
# source this file, then run pew workon fenics-${TAG}
module load Python/3.6.4-intel-2018a
module load CMake/3.11.1-GCCcore-6.4.0
module load Boost/1.66.0-intel-2018a-Python-3.6.4
module load Bison/3.0.4-GCCcore-6.4.0
module load flex/2.6.4-GCCcore-6.4.0
module load HDF5/1.10.1-intel-2018a
# module load Doxygen/1.8.13-GCCcore-6.4.0
module load SWIG/3.0.12-intel-2018a-Python-3.6.4
module load Szip
export CC=icc

Loading…
Cancel
Save