You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a couple of headers detecting what kind of compiler is in use and exposing macros accordingly:
libcu++ seems to be at root, detecting what compiler is in use in: cuda/std/__cccl/compiler.h and defines macros like _CCCL_COMPILER_GCC. However, no version macros are exposed.
Thrust has thrust/detail/config/compiler.h, which uses the libcu++ macros and replicates the information by defining THRUST_HOST_COMPILER to a set of predefined constants, e.g. THRUST_HOST_COMPILER_GCC (which is 2). Thrust additionally defines compiler version macros like THRUST_GCC_VERSION.
CUB basically duplicates what Thrust does, exposing macros like CUB_HOST_COMPILER or CUB_GCC_VERSION.
I would really like all these macros to be consolidated into a single header inside libcu++, so I have a consistent way of asking what compiler at which version is in use.
The text was updated successfully, but these errors were encountered:
I would at least like to have compiler version macros in libcu++, so I could consistenly use the libcu++ macros across Thrust, CUB and libcu++. This would also allow us to deprecate and remove the Thrust and CUB macros at some point.
We have a couple of headers detecting what kind of compiler is in use and exposing macros accordingly:
libcu++ seems to be at root, detecting what compiler is in use in:
cuda/std/__cccl/compiler.h
and defines macros like_CCCL_COMPILER_GCC
. However, no version macros are exposed.Thrust has
thrust/detail/config/compiler.h
, which uses the libcu++ macros and replicates the information by definingTHRUST_HOST_COMPILER
to a set of predefined constants, e.g.THRUST_HOST_COMPILER_GCC
(which is2
). Thrust additionally defines compiler version macros likeTHRUST_GCC_VERSION
.CUB basically duplicates what Thrust does, exposing macros like
CUB_HOST_COMPILER
orCUB_GCC_VERSION
.I would really like all these macros to be consolidated into a single header inside libcu++, so I have a consistent way of asking what compiler at which version is in use.
The text was updated successfully, but these errors were encountered: