Skip to content

Commit 50e2451

Browse files
authored
Update intrinsics.rs to correctly use bitsize for atomic cas ops
1 parent 473fc55 commit 50e2451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cuda_std/src/atomic/intrinsics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ atomic_fetch_op_3_reg! {
11651165
volatile, max, 64, i64, system, sys,
11661166
}
11671167

1168-
macro_rules! atomic_fetch_op_4_reg {
1168+
macro_rules! atomic_fetch_logic_op_4_reg {
11691169
($($ordering:ident, $op:ident, $width:literal, $type:ty, $scope:ident, $scope_asm:ident),* $(,)*) => {
11701170
$(
11711171
paste! {
@@ -1186,7 +1186,7 @@ macro_rules! atomic_fetch_op_4_reg {
11861186
".",
11871187
stringify!($op),
11881188
".",
1189-
ptx_type!($type),
1189+
ptx_type_for_logic_op!($type),
11901190
" {}, [{}], {}, {};"
11911191
),
11921192
out([<reg $width>]) out,
@@ -1201,7 +1201,7 @@ macro_rules! atomic_fetch_op_4_reg {
12011201
};
12021202
}
12031203

1204-
atomic_fetch_op_4_reg! {
1204+
atomic_fetch_logic_op_4_reg! {
12051205
// compare and swap
12061206

12071207
relaxed, cas, 32, u32, device, gpu,

0 commit comments

Comments
 (0)