Skip to content

Commit 145f936

Browse files
committed
fix warp assert on pow of 2
1 parent 946c91f commit 145f936

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/cuda_std/src/warp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ unsafe fn warp_shuffle_32(
766766
}
767767

768768
assert!(
769-
!(width & (width - 1)) != 0 && width <= 32,
769+
width != 0 && (width & (width - 1)) == 0 && width <= 32,
770770
"width must be a power of 2 and less than or equal to 32"
771771
);
772772

0 commit comments

Comments
 (0)