Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Forcefully disable warnings in GCC for <nv/target> #259

Merged
merged 3 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions include/nv/detail/__preprocessor
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
//
//===----------------------------------------------------------------------===//

#if defined(__GNUC__)
#pragma GCC system_header
#endif

// For all compilers and dialects this header defines:
// _NV_EVAL
Expand Down
4 changes: 4 additions & 0 deletions include/nv/detail/__target_macros
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

#include "__preprocessor"

#if defined(__GNUC__)
#pragma GCC system_header
#endif

# define _NV_TARGET_ARCH_TO_SELECTOR_350 nv::target::sm_35
# define _NV_TARGET_ARCH_TO_SELECTOR_370 nv::target::sm_37
# define _NV_TARGET_ARCH_TO_SELECTOR_500 nv::target::sm_50
Expand Down