Skip to content

Commit 473fc55

Browse files
authored
Tweak ptx_type_for_logic_op to be exhaustive, and correctly handle f32/f64
1 parent 9c02cbf commit 473fc55

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

crates/cuda_std/src/atomic/intrinsics.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ macro_rules! ptx_type_for_logic_op {
179179
(i64) => {
180180
"b64"
181181
};
182-
($ty:ident) => {
183-
stringify!($ty)
182+
(f32) => {
183+
"b32"
184+
};
185+
(f64) => {
186+
"b64"
184187
};
185188
}
186189

0 commit comments

Comments
 (0)