| 1 |
#! /bin/bash |
| 2 |
|
| 3 |
#this is user-specific... |
| 4 |
sierra_code=/fgs/$USER/code |
| 5 |
|
| 6 |
#depending on the system, you may need sierra-devel or sierra-devel/nvidia |
| 7 |
module purge |
| 8 |
module load sierra-devel/nvidia |
| 9 |
|
| 10 |
#now the magic currently necessary for CUDA: |
| 11 |
|
| 12 |
export mpicxx_path=`type -p mpicxx` |
| 13 |
export MPI_ROOT=$(dirname ${mpicxx_path}) |
| 14 |
export LLNL_USE_OMPI_VARS=y |
| 15 |
export OMPI_CXX=/fgs/$USER/stk-cmake-testing/Trilinos/packages/kokkos/bin/nvcc_wrapper |
| 16 |
|
| 17 |
cd ${sierra_code} |
| 18 |
|
| 19 |
CUDA=ON CLEAR_CACHE=ON ./stk/stk_integration_tests/cmake_install_test/build_stk_using_cmake |
| 20 |
|