Skip to content

Commit

Permalink
Enable OpenMP for SEMS CI build (trilinos#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Mar 14, 2018
1 parent 3e6c101 commit cfd247c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion cmake/load_sems_dev_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
# and load different modules for CMake, git, and Python since these are just
# tools that don't depend on the selected compiler or MPI.
#
# NOTE: This also sets OMP_NUM_THREADS for an OpenMP build so that tests can
# be run with ctest out of the blocks.
#

# Get the base dir for the sourced script
called=$_
Expand Down Expand Up @@ -135,12 +138,21 @@ module load $sems_parmetis_and_version_default
module load $sems_scotch_and_version_default
module load $sems_superlu_and_version_default

#
# D) Set up for standard basic OpenMP build and running tests
#

export OMP_NUM_THREAD=2

if [ "${TRILINOS_SEMS_DEV_ENV_VERBOSE}" == "1" ] ; then
module list
echo
echo "Set env vars:"
set | grep "^OMP_"
fi

#
# D) Remember the loaded SEMS Dev Env
# E) Remember the loaded SEMS Dev Env
#

export TRILINOS_SEMS_DEV_ENV_LOADED="$TRILINOS_SEMS_DEV_ENV_TO_LOAD"
1 change: 1 addition & 0 deletions cmake/std/MpiReleaseDebugSharedPtSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(CMAKE_BUILD_TYPE RELEASE)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_DEBUG ON)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(BUILD_SHARED_LIBS ON)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_DEBUG_SYMBOLS ON)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_OpenMP ON)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_EXPLICIT_INSTANTIATION ON)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Trilinos_ENABLE_SECONDARY_TESTED_CODE OFF)
TRIL_SET_BOOL_CACHE_VAR_FOR_PT_BUILD(Teuchos_ENABLE_DEFAULT_STACKTRACE OFF)

0 comments on commit cfd247c

Please sign in to comment.