Skip to content

Commit

Permalink
Merge pull request #5634 from jmgate/num-kokkos-devices
Browse files Browse the repository at this point in the history
Set KOKKOS_NUM_DEVICES in ATDM Environment Scripts
  • Loading branch information
jmgate authored Aug 5, 2019
2 parents 3401d93 + e4fd7f9 commit b0e068f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/std/atdm/ride/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ elif [[ "$ATDM_CONFIG_COMPILER" == "CUDA-9.2_GNU-7.2.0" ]] ; then
export ATDM_CONFIG_USE_CUDA=ON
export CUDA_LAUNCH_BLOCKING=1
export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1
export KOKKOS_NUM_DEVICES=2
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
# ABove avoids timeouts due to not running on separate GPUs (see #2446)

Expand All @@ -208,6 +209,7 @@ elif [[ "$ATDM_CONFIG_COMPILER" == "CUDA-10.1_GNU-7.2.0" ]] ; then
export ATDM_CONFIG_USE_CUDA=ON
export CUDA_LAUNCH_BLOCKING=1
export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1
export KOKKOS_NUM_DEVICES=2
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
# ABove avoids timeouts due to not running on separate GPUs (see #2446)

Expand Down
1 change: 1 addition & 0 deletions cmake/std/atdm/sems-rhel7/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ elif [[ "$ATDM_CONFIG_COMPILER" == "CUDA-9.2" ]] ; then
# some Trilinos tests require this to run correctly
export CUDA_LAUNCH_BLOCKING=1
export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1
export KOKKOS_NUM_DEVICES=2
else
echo
echo "***"
Expand Down
1 change: 1 addition & 0 deletions cmake/std/atdm/shiller/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ elif [[ "$ATDM_CONFIG_COMPILER" == "CUDA"* && "$ATDM_CONFIG_KOKKOS_ARCH" == "Kep
export ATDM_CONFIG_USE_CUDA=ON
export CUDA_LAUNCH_BLOCKING=1
export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1
export KOKKOS_NUM_DEVICES=2
export ATDM_CONFIG_LAPACK_LIBS="-L${LAPACK_ROOT}/lib;-llapack;-lgfortran"
export ATDM_CONFIG_BLAS_LIBS="-L${BLAS_ROOT}/lib;-lblas;-lgfortran"
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
Expand Down
1 change: 1 addition & 0 deletions cmake/std/atdm/waterman/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ elif [[ "$ATDM_CONFIG_COMPILER" == "CUDA"* ]] ; then
export ATDM_CONFIG_USE_CUDA=ON
export CUDA_LAUNCH_BLOCKING=1
export CUDA_MANAGED_FORCE_DEVICE_ALLOC=1
export KOKKOS_NUM_DEVICES=2
export ATDM_CONFIG_CTEST_PARALLEL_LEVEL=8
# Avoids timeouts due to not running on separate GPUs (see #2446)
else
Expand Down

0 comments on commit b0e068f

Please sign in to comment.