From c373a84400328d9236226b6aef40bb2bde413cd0 Mon Sep 17 00:00:00 2001 From: "sewon.jeon" Date: Tue, 5 Dec 2023 03:15:02 -0800 Subject: [PATCH] Use updated naming to remove warning (#1687) Summary: diag_suppress is deprecated from cuda Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/1687 Reviewed By: MichaelRamamonjisoa Differential Revision: D51495875 Pulled By: bottler fbshipit-source-id: 6543a15e666238365719117bfcf5f7dac532aec1 --- pytorch3d/csrc/pulsar/global.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pytorch3d/csrc/pulsar/global.h b/pytorch3d/csrc/pulsar/global.h index 8cc458a5..a5b7fcb1 100644 --- a/pytorch3d/csrc/pulsar/global.h +++ b/pytorch3d/csrc/pulsar/global.h @@ -30,11 +30,18 @@ #define GLOBAL __global__ #define RESTRICT __restrict__ #define DEBUGBREAK() +#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__ +#pragma nv_diag_suppress 1866 +#pragma nv_diag_suppress 2941 +#pragma nv_diag_suppress 2951 +#pragma nv_diag_suppress 2967 +#else #pragma diag_suppress = attribute_not_allowed #pragma diag_suppress = 1866 #pragma diag_suppress = 2941 #pragma diag_suppress = 2951 #pragma diag_suppress = 2967 +#endif #else // __CUDACC__ #define INLINE inline #define HOST