From 96eeadb17df60a0556a78dade1f7fec287a24589 Mon Sep 17 00:00:00 2001 From: Cyrus Harrison Date: Thu, 26 Aug 2021 09:01:41 -0700 Subject: [PATCH] protection (#225) --- src/cmake/thirdparty/SetupVTKm.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cmake/thirdparty/SetupVTKm.cmake b/src/cmake/thirdparty/SetupVTKm.cmake index 2a2eb541..1bc5b563 100644 --- a/src/cmake/thirdparty/SetupVTKm.cmake +++ b/src/cmake/thirdparty/SetupVTKm.cmake @@ -74,6 +74,8 @@ if(ENABLE_CUDA) vtkm_get_cuda_flags(_fetch_vtkm_cuda_flags) set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} ${_fetch_vtkm_cuda_flags}") unset(_fetch_vtkm_cuda_flags) + # we also need + set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xptxas --disable-optimizer-constants") endif() # VTKM does not seem to propogate includes it exposes to us, so we have to work