From 66a34a0ccb73d001ec53520d7583e568eea36ee0 Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Mon, 16 Oct 2023 11:10:30 +0200 Subject: [PATCH] For now disable visibility on nvc++ --- .../cuda/std/detail/libcxx/include/__cccl/visibility.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h index b000947ec4d..b8e9d337414 100644 --- a/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h +++ b/libcudacxx/include/cuda/std/detail/libcxx/include/__cccl/visibility.h @@ -24,6 +24,12 @@ _CCCL_FORCE_SYSTEM_HEADER #endif // !_CCCL_COMPILER_NVHPC +// For unknown reasons, nvc++ need to selectively disable this warning +// We do not want to use our usual macro because that would have push / pop semantics +#if defined(_CCCL_COMPILER_NVHPC) +#pragma nv_diag_suppress 1407 +#endif // _CCCL_COMPILER_NVHPC + // Enable us to hide kernels #if defined(_CCCL_COMPILER_MSVC) # define _CCCL_ATTRIBUTE_HIDDEN