[FEA]: Consolidate logic for compiler detection #572
Labels
cub
For all items related to CUB
feature request
New feature or request.
good first issue
Good for newcomers.
help wanted
Request for input or help from the community
libcu++
For all items related to libcu++
thrust
For all items related to Thrust.
Is this a duplicate?
Area
General CCCL
Is your feature request related to a problem? Please describe.
With cub, thrust and libcu++ being three different libraries we have a ton of duplicated code.
We want to incrementally move that code into common headers, so that we do not need to repeat it and also only have one pace to fix if changes need to be made
One glaring occurrence of that duplication is the way we determine which host / device compiler is used.
With the #531 we are getting a unified config that we can use in all libraries and also convenient definitions for
_CCCL_COMPILER_{GCC, CLANG, MSVC, NVHPC, NVRTC}
Describe the solution you'd like
We should clean up all existing uses of
_LIBCUDACXX_COMPILER_{GCC, CLANG, MSVC, NVHPC, NVRTC}
THRUST_HOST_COMPILER_{GCC, CLANG, MSVC, INTEL}
CUB_HOST_COMPILER_{GCC, CLANG, MSVC, INTEL}
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: