Skip to content
Open
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion crates/cuda_std/src/warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ unsafe fn warp_shuffle_32(
}

assert!(
!(width & (width - 1)) != 0 && width <= 32,
width != 0 && (width & (width - 1)) == 0 && width <= 32,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's true, we should use it, changing it

"width must be a power of 2 and less than or equal to 32"
);

Expand Down
Loading