Skip to content
Snippets Groups Projects
Commit c5166832 authored by Christian Witzler's avatar Christian Witzler
Browse files

Update sensei/build_sensei5.8.sh

parent 6ff3a1a6
No related branches found
No related tags found
1 merge request!3WIP: Update sensei/build_sensei5.8.sh
#!/bin/bash
module purge
module use ${OTHERSTAGES}
ml Stages/Devel-2020 GCC/9.3.0 ParaStationMPI/5.4.7-1
ml ParaView/5.8.1-Python-3.8.5
ml ADIOS2/2.6.0-Python-3.8.5
ml CMake
#needs to be loaded last
module unload mpi4py/3.0.3-Python-3.8.5
ml mpi4py/3.0.3-Python-3.8.5
#swig module missing
export PATH=$PATH:/p/home/jusers/leuschke1/jureca/myProject/Jupyter/pdi/swig/bin
#so far using local pdi build
export PYTHONPATH=$PYTHONPATH:/p/home/jusers/leuschke1/jureca/myProject/Jupyter/pdi/build2/build/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/p/home/jusers/leuschke1/jureca/myProject/Jupyter/pdi/build2/build/lib
# use source of 3.2.0 patched using: https://gitlab.kitware.com/sensei/sensei/-/commit/b0719fa59fced49ea1c82988b9b1f2b0a0478d3d
# get source
#mkdir -p src
#cd src
#wget https://gitlab.kitware.com/sensei/sensei/-/archive/v3.2.0/sensei-v3.2.0.tar.gz
#tar -xzf sensei-v3.2.0.tar.gz
#cd ..
configopts=""
configopts="-DCMAKE_INCLUDE_PATH=${EBROOTX11}/include;${EBROOTOPENGL}/include ${configopts} "
configopts="-DCMAKE_LIBRARY_PATH=${EBROOTX11}/lib;${EBROOTOPENGL}/lib ${configopts} "
configopts="-DCMAKE_VERBOSE_MAKEFILE=ON ${configopts} "
configopts="-DBUILD_SHARED_LIBS:BOOL=ON ${configopts} "
#configopts="-DCMAKE_SHARED_LINKER_FLAGS=\"-L${EBROOTPARAVIEW}/lib64/ -lvtkIOXML-9.0\" ${configopts} " # req. to ensure that XMLWriter can always be resolved (req. for 5.8.0)
configopts="-DBUILD_TESTING:BOOL=ON ${configopts} "
configopts="-DENABLE_SENSEI:BOOL=ON ${configopts} "
configopts="-DSENSEI_VERSION:STRING=3.2.0 ${configopts} " # cannot be set automatically, as it needs .git directory
#configopts="-DSENSEI_DATA_ROOT:STRING= ${configopts} "
configopts="-DENABLE_PYTHON:BOOL=ON ${configopts} " # Enables Python bindings. Requires VTK, Python, Numpy, mpi4py, and SWIG.
configopts="-DENABLE_VTK_GENERIC_ARRAYS:BOOL=ON ${configopts} " # Enables use of VTK's generic array feature, which can be used to implement highly efficient code
configopts="-DENABLE_CATALYST:BOOL=ON ${configopts} " # Enables the Catalyst analysis adaptor. Depends on ParaView Catalyst. Set ParaView_DIR.
configopts="-DENABLE_CATALYST_PYTHON:BOOL=ON ${configopts} " # Enables Python features of the Catalyst analysis adaptor.
configopts="-DENABLE_ASCENT:BOOL=OFF ${configopts} " # Enables the Ascent analysis adaptor.
configopts="-DENABLE_ADIOS1:BOOL=OFF ${configopts} " # Enables ADIOS 1 adaptors and endpoints. Set ADIOS_DIR.
configopts="-DENABLE_ADIOS2:BOOL=ON ${configopts} " # Enables ADIOS 2 adaptors and endpoints. Set ADIOS_DIR.
configopts="-DENABLE_CONDUIT:BOOL=OFF ${configopts} "
configopts="-DENABLE_HDF5:BOOL=OFF ${configopts} " # Enables HDF5 adaptors and endpoints. Set HDF5_DIR.
configopts="-DENABLE_LIBSIM:BOOL=OFF ${configopts} " # Enables Libsim data and analysis adaptors. Requires Libsim. Set VTK_DIR and LIBSIM_DIR.
configopts="-DENABLE_VTK_IO:BOOL=OFF ${configopts} " # Enables adaptors to write to VTK XML format. (sensei/VTKPosthocIO.cxx requires VisIt)
configopts="-DENABLE_VTK_MPI:BOOL=ON ${configopts} " # Enables MPI parallel VTK filters, such as parallel I/O.
configopts="-DENABLE_VTK_RENDERING:BOOL=ON ${configopts} "
configopts="-DENABLE_VTK_ACCELERATORS:BOOL=OFF ${configopts} "
configopts="-DENABLE_VTK_FILTERS:BOOL=ON ${configopts} "
configopts="-DENABLE_VTKM:BOOL=OFF ${configopts} " # Enables analyses that use VTKm directly instead of via VTK.
configopts="-DENABLE_VTKM_RENDERING:BOOL=OFF ${configopts} "
# mini-apps
configopts="-DENABLE_OSCILLATORS:BOOL=ON ${configopts} " # Enables the oscillators mini-app. (req. libvtkIOXML)
configopts="-DENABLE_MANDELBROT:BOOL=ON ${configopts} " # Enable the mandelbrot mini-app (req. libvtkIOXML)
configopts="-DENABLE_CONDUITTEST:BOOL=OFF ${configopts} " # Enable Conduit miniapp (experimental)
configopts="-DENABLE_KRIPKE:BOOL=OFF ${configopts} " # Enable Kripke miniapp (experimental)
configopts="-DENABLE_VORTEX:BOOL=OFF ${configopts} " # Enable Vortex miniapp (experimental)
configopts="-DENABLE_PROFILER:BOOL=OFF ${configopts} " # Enable internal profiler
configopts="-DENABLE_OPTS:BOOL=ON ${configopts} " # must be on or compile error
#configopts="-DVTK_DIR=${EBROOTVTK}/lib64/cmake/paraview-5.7/vtk ${configopts} " # Set to the directory containing VTKConfig.cmake.
configopts="-Dembree_DIR=${EBROOTEMBREE}/lib64/cmake/embree-3.8.0 ${configopts} "
configopts="-Dospray_DIR=${EBROOTOSPRAY}/lib64/cmake/ospray-1.8.4 ${configopts} "
configopts="-DParaView_DIR=${EBROOTPARAVIEW}/lib64/cmake/paraview-5.8 ${configopts} " # Set to the directory containing ParaViewConfig.cmake.
configopts="-DFFMPEG_ROOT=${EBROOTFFMPEG} ${configopts} "
configopts="-DQT5_ROOT=${EBROOTQT5} ${configopts} "
configopts="-DMPI4PY_INCLUDE_DIR=${EBROOTMPI4PY}/lib/python3.8/site-packages/mpi4py/include/ ${configopts} "
# cmake
rm -rf build
mkdir -p build
cd build
cmake ${configopts} ../src/sensei-v3.2.0/
#make -j 40
cd ..
#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment