Created
October 28, 2015 07:23
-
-
Save bilke/dca4a01022d6dc3884ff to your computer and use it in GitHub Desktop.
Jenkins OGS-5 envinf1-config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module () { eval `/usr/local/modules/3.2.10-1/Modules/3.2.10/bin/modulecmd sh $*`; } | |
| set +x | |
| export MODULEPATH="/global/apps/modulefiles:$MODULEPATH" | |
| module load cmake/3.1.3-1 | |
| module load gcc/4.8.1-3 | |
| module load boost/1.55.0-4 | |
| module load doxygen/1.8.7-1_gcc_4.8.1 | |
| set -x | |
| ln -s /opt/ogs/ogs5-libs Libs || : | |
| rm -rf build_configs; mkdir build_configs; cd build_configs | |
| ## NORMAL CONFIGS | |
| #mkdir build_fem; cd build_fem | |
| #cmake -DOGS_FEM=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| #cmake --build . -- -j $NUM_CORES | |
| #cd .. | |
| mkdir build_sp; cd build_sp | |
| cmake -DOGS_FEM_SP=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_gems; cd build_gems | |
| cmake -DOGS_FEM_GEMS=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_pqc; cd build_pqc | |
| cmake -DOGS_FEM_PQC=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_ipqc; cd build_ipqc | |
| cmake -DOGS_FEM_IPQC=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| set +x | |
| module load lapack/3.5.0-1_gcc_4.8.1_CentOS6 | |
| set -x | |
| mkdir build_brns; cd build_brns | |
| cmake -DOGS_FEM_BRNS=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_mkl; cd build_mkl | |
| cmake -DOGS_FEM_MKL=ON -DPARALLEL_USE_OPENMP=ON -DMKL_DIR=/opt/intel/mkl -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_lis; cd build_lis | |
| cmake -DOGS_FEM_LIS=ON -DPARALLEL_USE_OPENMP=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| ## PACKAGE REDISTRIBUTABLE FEM CONFIG | |
| mkdir build_fem; cd build_fem | |
| cmake -DOGS_FEM=ON -DOGS_NO_EXTERNAL_LIBS=ON -DCMAKE_BUILD_TYPE=Release ../../sources; cmake ../../sources | |
| cmake --build . --target package -- -j $NUM_CORES | |
| cd .. | |
| ## MPI CONFIG | |
| set +x | |
| module unload python | |
| module load openmpi/gcc/1.8.2-1_gcc_4.8.1 | |
| set -x | |
| mkdir build_mpi; cd build_mpi | |
| CC=mpicc CXX=mpic++ cmake -DOGS_FEM_MPI=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| ## PETSC CONFIGS | |
| export MODULEPATH=/global/apps/modulefiles:$MODULEPATH; | |
| #module load openmpi/gcc/1.8.2-1_gcc_4.8.1_CentOS6 | |
| #module load petsc/3.5_maint_gcc_4.8.1-3_openmpi_gcc_1.8.2-1_gcc_4.8.1_CentOS6_envinf | |
| module unload openmpi/gcc/1.8.2-1_gcc_4.8.1_CentOS6 | |
| module load petsc/3.4.4-1_gcc_4.8.1_openmpi_1.7.3 | |
| module load lapack/3.5.0-1_gcc_4.8.1 | |
| mkdir build_petsc; cd build_petsc | |
| cmake -DOGS_FEM_PETSC=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. | |
| mkdir build_petsc_gems; cd build_petsc_gems | |
| cmake -DOGS_FEM_PETSC_GEMS=ON -DCMAKE_BUILD_TYPE=Release -DOGS_DONT_USE_QT=ON ../../sources; cmake ../../sources | |
| cmake --build . -- -j $NUM_CORES | |
| cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment