From 98b7cb62aa636ac05339c03841ed902d298465e4 Mon Sep 17 00:00:00 2001 From: Nick Curtis Date: Tue, 10 Mar 2020 12:04:05 -0500 Subject: [PATCH] Fix incorrect shfl_xor for Windows copy/paste error, need __shfl_xor w/ lane_mask [ROCm/hip commit: 09edc7e49ce4c8210aff2dc3d88e03e6846a6a51] --- projects/hip/include/hip/hcc_detail/device_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/device_functions.h b/projects/hip/include/hip/hcc_detail/device_functions.h index e3544a491e..6e6756fd9c 100644 --- a/projects/hip/include/hip/hcc_detail/device_functions.h +++ b/projects/hip/include/hip/hcc_detail/device_functions.h @@ -557,7 +557,7 @@ long __shfl_xor(long var, int lane_mask, int width = warpSize) return tmp1; #else static_assert(sizeof(long) == sizeof(int), ""); - return static_cast(__shfl_down(static_cast(var), lane_delta, width)); + return static_cast(__shfl_xor(static_cast(var), lane_mask, width)); #endif } __device__