Tpetra: cmake error when building with Clang + CUDA
Created by: Char-Aznable
@mhoemmen I'm getting this superfluous cmake error from cmake:
Processing enabled package: Tpetra (Classic, TSQR, Core)
CMake Error at packages/tpetra/CMakeLists.txt:79 (MESSAGE):
If building with CUDA, Tpetra and downstream packages require, at least
with CUDA_VERSION >= 7.5 and <= 9.0, that you add "--expt-extended-lambda"
to either Trilinos_CXX11_FLAGS or CMAKE_CXX_FLAGS. You must also set
Kokkos_ENABLE_Cuda_Lambda:BOOL=ON, if it is not already ON by default.
AFIK, --expt-extended-lambda
is nvcc specific and doesn't apply to clang. Also, it should be Trilinos_CXX_FLAGS
instead of Trilinos_CXX11_FLAGS
that is checked here judging from the CMakeLists.txt