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

Commit

Permalink
Merge pull request #273 from NVIDIA/bugfix/nv_target_xlc_pedantic
Browse files Browse the repository at this point in the history
Fix pedantic warnings in <nv/target> on IBM xlc.
  • Loading branch information
wmaxey authored May 6, 2022
2 parents ad67435 + ace215a commit 017cb64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/nv/detail/__target_macros
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
# define _NV_TARGET_DISPATCH(...) _NV_BLOCK_EXPAND(_NV_DISPATCH_N_ARY(_NV_TARGET_DISPATCH_HANDLE, __VA_ARGS__))

// NV_IF_TARGET supports a false statement provided as a variadic macro
# define NV_IF_TARGET(cond, t, ...) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, t, __VA_ARGS__))
# define NV_IF_TARGET(cond, ...) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, __VA_ARGS__))
# define NV_IF_ELSE_TARGET(cond, t, f) _NV_BLOCK_EXPAND(_NV_TARGET_IF(cond, t, f))
# define NV_DISPATCH_TARGET(...) _NV_TARGET_DISPATCH(__VA_ARGS__)

Expand Down
5 changes: 3 additions & 2 deletions include/nv/target
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@
# define _NV_BITSET_ATTRIBUTE
#endif

#if (defined(__cplusplus) && __cplusplus >= 201103L) || \
(defined(_MSC_VER) && _MSVC_LANG >= 201103L)
#if (!defined(__ibmxl__)) && \
((defined(__cplusplus) && __cplusplus >= 201103L) || \
(defined(_MSC_VER) && _MSVC_LANG >= 201103L))
# define _NV_TARGET_CPP11
#endif

Expand Down

0 comments on commit 017cb64

Please sign in to comment.