Skip to content

Commit

Permalink
Use _CCCL_HOST_DEVICE for RTC
Browse files Browse the repository at this point in the history
  • Loading branch information
NaderAlAwar committed Jan 30, 2025
1 parent 773ca84 commit 5b194a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cub/cub/device/dispatch/kernels/merge_sort.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,24 @@ public:
::cuda::std::_If<uses_fallback_policy, fallback_block_sort_agent_t, default_block_sort_agent_t>;
using merge_agent_t = ::cuda::std::_If<uses_fallback_policy, fallback_merge_agent_t, default_merge_agent_t>;

CUB_RUNTIME_FUNCTION static constexpr std::size_t block_sort_vsmem_per_block()
_CCCL_HOST_DEVICE static constexpr ::cuda::std::size_t block_sort_vsmem_per_block()
{
return detail::vsmem_helper_impl<block_sort_agent_t>::vsmem_per_block;
}

CUB_RUNTIME_FUNCTION static constexpr std::size_t merge_vsmem_per_block()
_CCCL_HOST_DEVICE static constexpr ::cuda::std::size_t merge_vsmem_per_block()
{
return detail::vsmem_helper_impl<merge_agent_t>::vsmem_per_block;
}

template <typename PolicyT>
CUB_RUNTIME_FUNCTION static constexpr int BlockThreads(PolicyT /*policy*/)
_CCCL_HOST_DEVICE static constexpr int BlockThreads(PolicyT /*policy*/)
{
return policy_t::BLOCK_THREADS;
}

template <typename PolicyT>
CUB_RUNTIME_FUNCTION static constexpr int ItemsPerTile(PolicyT /*policy*/)
_CCCL_HOST_DEVICE static constexpr int ItemsPerTile(PolicyT /*policy*/)
{
return policy_t::ITEMS_PER_TILE;
}
Expand Down

0 comments on commit 5b194a6

Please sign in to comment.