Skip to content

Commit

Permalink
Workaround for clang in CUDA mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 14, 2025
1 parent e47d220 commit 9e5e08c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thrust/thrust/async/sort.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ struct stable_sort_fn final
)

template <typename... Args>
#if !_CCCL_CUDA_COMPILER(CLANG)
// clang in CUDA mode can only handle one attribute
_CCCL_NODISCARD _CCCL_HOST
#endif
CCCL_DEPRECATED auto operator()(Args&&... args) const
THRUST_RETURNS(
call(THRUST_FWD(args)...)
Expand Down Expand Up @@ -257,7 +260,10 @@ struct sort_fn final
)

template <typename... Args>
#if !_CCCL_CUDA_COMPILER(CLANG)
// clang in CUDA mode can only handle one attribute
_CCCL_NODISCARD _CCCL_HOST
#endif
CCCL_DEPRECATED auto operator()(Args&&... args) const
THRUST_RETURNS(
call(THRUST_FWD(args)...)
Expand Down

0 comments on commit 9e5e08c

Please sign in to comment.