cuda::experimental::stf::operator|

Defined in include/cuda/experimental/__stf/internal/execution_policy.cuh

inline hw_scope cuda::experimental::stf::operator|(const hw_scope &lhs, const hw_scope &rhs)

Bitwise OR operator for combining two hw_scope values.

This function performs bitwise OR on the underlying types of two hw_scope values. It’s useful for combining multiple hardware scopes into a single hw_scope value.

Note

The function includes assertions to ensure that lhs and rhs are within the allowed range.

Parameters
  • lhs – The left-hand side hw_scope.

  • rhs – The right-hand side hw_scope.

Returns

A new hw_scope that is the bitwise OR of lhs and rhs.