Skip to content

Commit

Permalink
Make min/max match algorith.min/max.
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Sep 4, 2024
1 parent e08ed80 commit 1000597
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static inline _CCCL_DEVICE void __cuda_atomic_fetch_max(_Type* __ptr, _Type& __d
__dst = __cuda_atomic_fetch_update(
__ptr,
[__op](_Type __old) {
return __old > __op ? __old : __op;
return __op < __old ? __old : __op;
},
_Order{},
__atomic_cuda_operand_tag<__atomic_cuda_operand::_b, _Operand::__size>{},
Expand Down

0 comments on commit 1000597

Please sign in to comment.