Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions rocprim/include/rocprim/intrinsics/warp_shuffle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ T warp_shuffle(T input, const int src_lane, const int width = warp_size())
input,
[=](int v) -> int
{
#if defined(ROCPRIM_HC_API) || defined(__HIP_PLATFORM_HCC__)
#if defined(ROCPRIM_HC_API) || (defined(__HIP_PLATFORM_HCC__) && !defined(__HIP__))
return hc::__shfl(v, src_lane, width);
#else
return __shfl(v, src_lane, width);
Expand Down Expand Up @@ -131,7 +131,7 @@ T warp_shuffle_up(T input, const unsigned int delta, const int width = warp_size
input,
[=](int v) -> int
{
#if defined(ROCPRIM_HC_API) || defined(__HIP_PLATFORM_HCC__)
#if defined(ROCPRIM_HC_API) || (defined(__HIP_PLATFORM_HCC__) && !defined(__HIP__))
return hc::__shfl_up(v, delta, width);
#else
return __shfl_up(v, delta, width);
Expand Down Expand Up @@ -160,7 +160,7 @@ T warp_shuffle_down(T input, const unsigned int delta, const int width = warp_si
input,
[=](int v) -> int
{
#if defined(ROCPRIM_HC_API) || defined(__HIP_PLATFORM_HCC__)
#if defined(ROCPRIM_HC_API) || (defined(__HIP_PLATFORM_HCC__) && !defined(__HIP__))
return hc::__shfl_down(v, delta, width);
#else
return __shfl_down(v, delta, width);
Expand Down Expand Up @@ -188,7 +188,7 @@ T warp_shuffle_xor(T input, const int lane_mask, const int width = warp_size())
input,
[=](int v) -> int
{
#if defined(ROCPRIM_HC_API) || defined(__HIP_PLATFORM_HCC__)
#if defined(ROCPRIM_HC_API) || (defined(__HIP_PLATFORM_HCC__) && !defined(__HIP__))
return hc::__shfl_xor(v, lane_mask, width);
#else
return __shfl_xor(v, lane_mask, width);
Expand Down