cuda::experimental::stf::access_mode_is_mutating#

inline bool cuda::experimental::stf::access_mode_is_mutating(
access_mode m
)#

Check whether a granted access mode permits a requested access mode.

When data is imported into a nested context with a given mode (granted), this checks if a subsequent operation requesting a different mode is valid. For example, data imported as read-only cannot be written.