Skip to content

Install and point to nvcc_wrapper correctly when loading env from install (#3746)

Created by: bartlettroscoe

CC: @bathmatt, @fryeguy52

This should fix CUDA builds of downstream APPs like EMPIRE (see #3746 (closed))

I tested this on 'white' and verified that after installing:

$ source install/load_matching_env.sh 
Hostname 'white11' matches known ATDM host 'white' and system 'ride'
ATDM_CONFIG_TRILNOS_DIR = /home/rabartl/Trilinos.base/BUILD/WHITE/CHECKIN/cuda-9.2-opt-Power8-Kepler37
Setting default compiler and build options for ATDM_CONFIG_JOB_NAME='cuda-9.2-opt-Power8-Kepler37'
Using white/ride compiler stack CUDA-9.2 to build RELEASE code with Kokkos node type CUDA and KOKKOS_ARCH=Power8,Kepler37

$ set | grep nvcc_wrapper
ATDM_CONFIG_NVCC_WRAPPER=/ascldap/users/rabartl/Trilinos.base/BUILD/WHITE/CHECKIN/cuda-9.2-opt-Power8-Kepler37/install/share/atdm-trilinos/nvcc_wrapper
OMPI_CXX=/ascldap/users/rabartl/Trilinos.base/BUILD/WHITE/CHECKIN/cuda-9.2-opt-Power8-Kepler37/install/share/atdm-trilinos/nvcc_wrapper

$ ${OMPI_CXX} --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Wed_Apr_11_23:23:05_CDT_2018
Cuda compilation tools, release 9.2, V9.2.88

CUDA should work from an installation now.

Merge request reports