Commit 90e5bfe8 authored by David E. DeMarle's avatar David E. DeMarle Committed by Kitware Robot
Browse files

Merge topic 'preserve-argonne-configs'

21b4e885

 Save off working script for Argonne
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !372
parents 4a7a5917 21b4e885
Pipeline #75406 failed with stage
in 0 seconds
#!/bin/bash
if [ $# -lt 3 ]
then
echo "Usage: $0 compiler mpi boost [extra cmake args]"
echo "We recommend +gcc-4.8.1 +mvapich2-2.1 +boost-1.57.0-gcc-mvapich2"
exit 1
fi
COMP=$1
MPI=$2
BOOST=$3
shift 3
source ${SOFTENV_ALIASES}
soft add +cmake-3.8.1
soft add +git
soft add ${MPI}
soft add ${COMP}
soft add ${BOOST}
# The paths get mucked with a bit later so this just makes sure we use the
# right compiler when CMake is called
case ${COMP} in
+gcc*)
export CC=$(which gcc) CXX=$(which g++) FC=$(which gfortran)
;;
*)
echo "Warning, that compiler is untested. You must set CC, CXX, and FC environment variables."
esac
BASENAME=v5.4.0_${COMP}_${MPI}
SRC=$(readlink -f $(dirname $(readlink -f $0))/../..)
DOWNLOADS=${PWD}/downloads
mkdir -p ${BASENAME}
cd ${BASENAME}
# Set any user supplied values
EXTRA_OPTS="${EXTRA_OPTS}"
# Place newer binutils in the path for AVX2 code generation
soft add +binutils-2.27
echo ${BASENAME} > log.configure
cmake \
-DPARAVIEWSDK_PACKAGE_FILE_NAME=${BASENAME} \
-C${SRC}/cmake/sites/ANL-Cooley-Shared.cmake \
${EXTRA_OPTS} "$@" ${SRC} 2>&1 | tee -a log.configure
if [ $? -ne 0 ]
then
exit 1
fi
echo ${BASENAME} > log.build
make 2>&1 | tee -a log.build
if [ $? -ne 0 ]
then
exit 1
fi
echo ${BASENAME} > log.package
ctest -R cpack-paraviewsdk-TGZ 2>&1 | tee -a log.package
if [ $? -ne 0 ]
then
exit 1
fi
#!/bin/bash
if [ $# -lt 4 ]
then
echo "Usage: $0 compiler compiler_version mpi mpi_version [extra cmake args]"
exit 1
fi
COMP=$1
COMP_VER=$2
MPI=$3
MPI_VER=$4
shift 4
case "${COMP}" in
intel)
COMP_MOD=intel
PE_MOD=intel
;;
gcc|gnu)
COMP_MOD=gcc
PE_MOD=gnu
;;
*)
COMP_MOD=${COMP}
PE_MOD=${COMP}
;;
esac
#module purge
module load craype
module load craype-haswell
module load PrgEnv-${PE_MOD}
module swap ${COMP_MOD} ${COMP_MOD}/${COMP_VER}
module load ${MPI}/${MPI_VER}
module load cray-hdf5
module load cray-python
module load cmake
export CC=$(which cc) CXX=$(which CC) FC=$(which ftn)
export CRAYPE_LINK_TYPE=dynamic
BASENAME=5.4.0-osmesa_${COMP}-${COMP_VER}_${MPI}-${MPI_VER}
SRC=$(readlink -f $(dirname $(readlink -f $0))/../..)
DOWNLOADS=${PWD}/downloads
mkdir -p ${BASENAME}
cd ${BASENAME}
cmake \
-Dsuperbuild_download_location=${DOWNLOADS} \
-DPARAVIEWSDK_PACKAGE_FILE_NAME=${BASENAME} \
-C${SRC}/cmake/sites/ANL-Theta-Shared.cmake \
-DSUPERBUILD_PROJECT_PARALLELISM=32 \
"$@" ${SRC}
make
ctest -R cpack-paraviewsdk-TGZ
# Tarballs needing to be downloaded:
# boost
# ffmpeg
# matplotlib
# numpy
# osmesa
# paraview
# python
# visitbridge
# General build settings
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
set(BUILD_SHARED_LIBS ON CACHE BOOL "")
set(BUILD_TESTING ON CACHE BOOL "")
# Enable the appropriate packages
set(ENABLE_boost ON CACHE BOOL "")
set(ENABLE_bzip2 ON CACHE BOOL "")
set(ENABLE_cosmotools ON CACHE BOOL "")
set(ENABLE_ffmpeg ON CACHE BOOL "")
set(ENABLE_fontconfig ON CACHE BOOL "")
set(ENABLE_fortran ON CACHE BOOL "")
set(ENABLE_freetype ON CACHE BOOL "")
set(ENABLE_genericio ON CACHE BOOL "")
set(ENABLE_matplotlib ON CACHE BOOL "")
set(ENABLE_mpi ON CACHE BOOL "")
set(ENABLE_numpy ON CACHE BOOL "")
set(ENABLE_osmesa OFF CACHE BOOL "")
set(ENABLE_ospray ON CACHE BOOL "")
set(ENABLE_paraview ON CACHE BOOL "")
set(ENABLE_paraviewsdk ON CACHE BOOL "")
set(ENABLE_png ON CACHE BOOL "")
set(ENABLE_python ON CACHE BOOL "")
set(ENABLE_silo ON CACHE BOOL "")
set(ENABLE_visitbridge ON CACHE BOOL "")
set(ENABLE_vtkm OFF CACHE BOOL "")
set(ENABLE_xdmf3 ON CACHE BOOL "")
set(ENABLE_zlib ON CACHE BOOL "")
# These will get pulled from the compute node's userland
set(USE_SYSTEM_boost ON CACHE BOOL "")
set(USE_SYSTEM_bzip2 ON CACHE BOOL "")
set(USE_SYSTEM_freetype ON CACHE BOOL "")
set(USE_SYSTEM_hdf5 ON CACHE BOOL "")
set(USE_SYSTEM_libxml2 ON CACHE BOOL "")
set(USE_SYSTEM_matplotlib ON CACHE BOOL "")
set(USE_SYSTEM_mpi ON CACHE BOOL "")
set(USE_SYSTEM_numpy OFF CACHE BOOL "")
set(USE_SYSTEM_png OFF CACHE BOOL "")
set(USE_SYSTEM_python OFF CACHE BOOL "")
set(USE_SYSTEM_tbb OFF CACHE BOOL "")
set(USE_SYSTEM_zlib ON CACHE BOOL "")
# Enable all architectures for OSPray
set(ospray_BUILD_ISA ALL CACHE STRING "")
# Paraview details
set(paraview_SOURCE_SELECTION 5.4.0 CACHE BOOL "")
# Specify where the necessary tarballs have been downloaded to
set(superbuild_download_location /projects/pvdev/cooley/downloads CACHE STRING "")
# General build settings
set(CMAKE_BUILD_TYPE Release CACHE STRING "")
set(BUILD_SHARED_LIBS ON CACHE BOOL "")
# Enable the appropriate packages
set(ENABLE_boost ON CACHE BOOL "")
set(ENABLE_bzip2 OFF CACHE BOOL "")
set(ENABLE_cosmotools ON CACHE BOOL "")
set(ENABLE_ffmpeg ON CACHE BOOL "")
set(ENABLE_freetype ON CACHE BOOL "")
set(ENABLE_genericio ON CACHE BOOL "")
set(ENABLE_hdf5 ON CACHE BOOL "")
set(ENABLE_libxml2 OFF CACHE BOOL "")
set(ENABLE_matplotlib ON CACHE BOOL "")
set(ENABLE_mpi ON CACHE BOOL "")
set(ENABLE_numpy ON CACHE BOOL "")
set(ENABLE_osmesa ON CACHE BOOL "")
set(ENABLE_ospray OFF CACHE BOOL "")
set(ENABLE_paraview ON CACHE BOOL "")
set(ENABLE_paraviewsdk ON CACHE BOOL "")
set(ENABLE_png OFF CACHE BOOL "")
set(ENABLE_python ON CACHE BOOL "")
set(ENABLE_silo ON CACHE BOOL "")
set(ENABLE_visitbridge ON CACHE BOOL "")
set(ENABLE_vtkm OFF CACHE BOOL "")
set(ENABLE_xdmf3 ON CACHE BOOL "")
set(ENABLE_zlib ON CACHE BOOL "")
# Work around cmake bug, which values from `which cc,CC,ftn`
set(MPI_CXX_COMPILER /opt/cray/pe/craype/2.5.12/bin/CC CACHE STRING "")
set(MPI_C_COMPILER /opt/cray/pe/craype/2.5.12/bin/cc CACHE STRING "")
set(MPI_Fortran_COMPILER /opt/cray/pe/craype/2.5.12/bin/ftn CACHE STRING "")
# These will get pulled from the compute node's userland
set(USE_SYSTEM_boost OFF CACHE BOOL "")
set(USE_SYSTEM_bzip2 OFF CACHE BOOL "")
set(USE_SYSTEM_freetype ON CACHE BOOL "")
set(USE_SYSTEM_hdf5 ON CACHE BOOL "")
set(USE_SYSTEM_libxml2 ON CACHE BOOL "")
set(USE_SYSTEM_matplotlib ON CACHE BOOL "")
set(USE_SYSTEM_mpi ON CACHE BOOL "")
set(USE_SYSTEM_numpy ON CACHE BOOL "")
set(USE_SYSTEM_osmesa OFF CACHE BOOL "")
set(USE_SYSTEM_png ON CACHE BOOL "")
set(USE_SYSTEM_python ON CACHE BOOL "")
set(USE_SYSTEM_zlib ON CACHE BOOL "")
# ParaView details
set(SUPERBUILD_PROJECT_PARALLELISM 32 CACHE STRING "")
set(paraview_SOURCE_SELECTION 5.4.0 CACHE BOOL "")
# Specify where the necessary tarballs have been downloaded to
set(superbuild_download_location ${CMAKE_BINARY_DIR}/../../downloads CACHE STRING "")
# Another, ensure we get cray python
set(PYTHON_EXECUTABLE /opt/python/17.06.1/bin/python2.7 CACHE FILEPATH "")
set(PYTHON_INCLUDE_DIR /opt/python/17.06.1/include/python2.7 CACHE PATH "")
set(PYTHON_LIBRARY /opt/python/17.06.1/lib/libpython2.7.so CACHE FILEPATH "")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment