Skip to content

Commit

Permalink
Try and make the deprecation warnings work with nvrtc on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 31, 2025
1 parent 8359070 commit 291a601
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cub/cub/util_cpp_dialect.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# define CUB_CPP_DIALECT _CCCL_STD_VER

// Define CUB_COMPILER_DEPRECATION macro:
# if _CCCL_COMPILER(MSVC)
# if _CCCL_COMPILER(MSVC) && !_CCCL_COMPILER(NVRTC)
# define CUB_COMP_DEPR_IMPL(msg) _CCCL_PRAGMA(message(__FILE__ ":" _CCCL_TO_STRING(__LINE__) ": warning: " #msg))
# else // clang / gcc:
# define CUB_COMP_DEPR_IMPL(msg) _CCCL_PRAGMA(GCC warning #msg)
Expand Down
2 changes: 1 addition & 1 deletion libcudacxx/include/cuda/std/__internal/cpp_dialect.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#endif // no system header

// Define LIBCUDACXX_COMPILER_DEPRECATION macro:
#if _CCCL_COMPILER(MSVC)
#if _CCCL_COMPILER(MSVC) && !_CCCL_COMPILER(NVRTC)
# define LIBCUDACXX_COMP_DEPR_IMPL(msg) \
_CCCL_PRAGMA(message(__FILE__ ":" _CCCL_TO_STRING(__LINE__) ": warning: " #msg))
#else // ^^^ _CCCL_COMPILER(MSVC) ^^^ / vvv !_CCCL_COMPILER(MSVC) vvv
Expand Down
2 changes: 1 addition & 1 deletion thrust/thrust/detail/config/cpp_dialect.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#define THRUST_CPP_DIALECT _CCCL_STD_VER

// Define THRUST_COMPILER_DEPRECATION macro:
#if _CCCL_COMPILER(MSVC)
#if _CCCL_COMPILER(MSVC) && !_CCCL_COMPILER(NVRTC)
# define THRUST_COMP_DEPR_IMPL(msg) _CCCL_PRAGMA(message(__FILE__ ":" _CCCL_TO_STRING(__LINE__) ": warning: " #msg))
#else // clang / gcc:
# define THRUST_COMP_DEPR_IMPL(msg) _CCCL_PRAGMA(GCC warning #msg)
Expand Down

0 comments on commit 291a601

Please sign in to comment.