From 7505f3f3ed088116016d1eeae42fa23c92e6611e Mon Sep 17 00:00:00 2001 From: "Kelly (KT) Thompson" Date: Tue, 14 Sep 2021 15:38:17 -0600 Subject: [PATCH] Begin supporting nvcc+xl on darwin P9. --- config/unix-cuda.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/unix-cuda.cmake b/config/unix-cuda.cmake index bafeac5fa..116b5906a 100644 --- a/config/unix-cuda.cmake +++ b/config/unix-cuda.cmake @@ -57,7 +57,8 @@ if(NOT CUDA_FLAGS_INITIALIZED) if(CMAKE_CXX_COMPILER_ID MATCHES "XL") string(APPEND CMAKE_CUDA_FLAGS " -DCUB_IGNORE_DEPRECATED_CPP_DIALECT" " -DTHRUST_IGNORE_DEPRECATED_CPP_DIALECT") - string(APPEND CMAKE_CUDA_FLAGS " -ccbin ${CMAKE_CXX_COMPILER} -Xcompiler -std=c++14") + string(APPEND CMAKE_CUDA_FLAGS " -ccbin ${CMAKE_CXX_COMPILER} -Xcompiler -std=c++14" + " -Xcompiler -qxflag=disable__cplusplusOverride") if(EXISTS /usr/gapps) # ATS-2 string(APPEND CMAKE_CUDA_FLAGS " -Xcompiler --gcc-toolchain=/usr/tce/packages/gcc/gcc-8.3.1"