#! /bin/bash

#this may be user-specific or system-specific:
sierra_code=/scratch/$USER/code

#depending on the system, you may need sierra-devel or sierra-devel/nvidia
module load sierra-devel/nvidia

#now the magic currently necessary for CUDA:

export mpicxx_path=`type -p mpicxx`
export MPI_ROOT=$(dirname ${mpicxx_path})
export LLNL_USE_OMPI_VARS=y
export OMPI_CXX=${sierra_code}/TPLs_src/trilinos/packages/kokkos/bin/nvcc_wrapper

cd ${sierra_code}

CUDA=ON ./stk/stk_integration_tests/cmake_install_test/build_stk_using_cmake

