cuda::experimental::stf::operator|#

Overloads#

operator|(lhs, rhs)#

inline access_mode cuda::experimental::stf::operator|(
access_mode lhs,
access_mode rhs,
)

Combines two access mode into a compatible access mode for both accesses (eg.

read+write = rw, read+read = read)

operator|(lhs, rhs)#

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.