Skip to content

Commit

Permalink
Merge Pull Request #7488 from bartlettroscoe/Trilinos/atdv-357-cts1-f…
Browse files Browse the repository at this point in the history
…ix-omp-vars

Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Move setting OMP_XXX vars after sparc-dev module loads (ATDV-357)
PR Author: bartlettroscoe
  • Loading branch information
trilinos-autotester authored Jun 6, 2020
2 parents a6161e6 + 35c1319 commit 1691771
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions cmake/std/atdm/common/toss3/environment_new.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ module purge
module load sems-env
module load sems-git/2.10.1

if [ "$ATDM_CONFIG_NODE_TYPE" == "OPENMP" ] ; then
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
export OMP_NUM_THREADS=2
else
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=16
fi

# Common paths and modules for both intel-1{8,9}
module load cmake/3.12.2

Expand All @@ -50,6 +43,15 @@ fi

module load sems-ninja_fortran/1.8.2

if [ "$ATDM_CONFIG_NODE_TYPE" == "OPENMP" ] ; then
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
export OMP_NUM_THREADS=2
unset OMP_PLACES
unset OMP_PROC_BIND
else
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=16
fi

export OMPI_CXX=`which icpc`
export OMPI_CC=`which icc`
export OMPI_FC=`which ifort`
Expand Down

0 comments on commit 1691771

Please sign in to comment.