Skip to content

Commit 5495526

Browse files
committed
Do not consider _Backend when comparing execution policies
1 parent fbbda16 commit 5495526

File tree

1 file changed

+2
-2
lines changed
  • libcudacxx/include/cuda/std/__execution

1 file changed

+2
-2
lines changed

libcudacxx/include/cuda/std/__execution/policy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ struct __execution_policy_base
4545
[[nodiscard]] _CCCL_API friend constexpr bool
4646
operator==(const __execution_policy_base&, const __execution_policy_base<_OtherPolicy, _OtherBackend>&) noexcept
4747
{
48-
return _Policy == _OtherPolicy && _Backend == _OtherBackend;
48+
return _Policy == _OtherPolicy;
4949
}
5050

5151
#if _CCCL_STD_VER <= 2017
5252
template <uint32_t _OtherPolicy, __execution_backend _OtherBackend>
5353
[[nodiscard]] _CCCL_API friend constexpr bool
5454
operator!=(const __execution_policy_base&, const __execution_policy_base<_OtherPolicy, _OtherBackend>&) noexcept
5555
{
56-
return _Policy != _OtherPolicy || _Backend != _OtherBackend;
56+
return _Policy != _OtherPolicy;
5757
}
5858
#endif // _CCCL_STD_VER <= 2017
5959

0 commit comments

Comments
 (0)