Skip to content

Commit

Permalink
Suppress visibility issues with ICC
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Sep 3, 2024
1 parent 5bb9207 commit f8ae928
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libcudacxx/include/cuda/std/__cccl/visibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
# define _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION
#endif // !exclude_from_explicit_instantiation

#define _CCCL_HIDE_FROM_ABI _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION inline
#if defined(_CCCL_COMPILER_ICC)
# define _CCCL_HIDE_FROM_ABI inline
#else // ^^^ _CCCL_COMPILER_ICC ^^^ / vvv !_CCCL_COMPILER_ICC vvv
# define _CCCL_HIDE_FROM_ABI _CCCL_VISIBILITY_HIDDEN _CCCL_EXCLUDE_FROM_EXPLICIT_INSTANTIATION inline
#endif // !_CCCL_COMPILER_ICC

//! Defined here to supress any warnings from the definition
#define _LIBCUDACXX_HIDE_FROM_ABI _CCCL_HIDE_FROM_ABI _CCCL_HOST_DEVICE
Expand Down

0 comments on commit f8ae928

Please sign in to comment.