Skip to content

Commit c373a84

Browse files
eclipse0922facebook-github-bot
authored andcommitted
Use updated naming to remove warning (#1687)
Summary: diag_suppress is deprecated from cuda Pull Request resolved: #1687 Reviewed By: MichaelRamamonjisoa Differential Revision: D51495875 Pulled By: bottler fbshipit-source-id: 6543a15e666238365719117bfcf5f7dac532aec1
1 parent 7606854 commit c373a84

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytorch3d/csrc/pulsar/global.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,18 @@
3030
#define GLOBAL __global__
3131
#define RESTRICT __restrict__
3232
#define DEBUGBREAK()
33+
#ifdef __NVCC_DIAG_PRAGMA_SUPPORT__
34+
#pragma nv_diag_suppress 1866
35+
#pragma nv_diag_suppress 2941
36+
#pragma nv_diag_suppress 2951
37+
#pragma nv_diag_suppress 2967
38+
#else
3339
#pragma diag_suppress = attribute_not_allowed
3440
#pragma diag_suppress = 1866
3541
#pragma diag_suppress = 2941
3642
#pragma diag_suppress = 2951
3743
#pragma diag_suppress = 2967
44+
#endif
3845
#else // __CUDACC__
3946
#define INLINE inline
4047
#define HOST

0 commit comments

Comments
 (0)