cuda::experimental::stf::unpin#

template<typename T, typename ...P>
void cuda::experimental::stf::unpin(
mdspan<T, P...> &s
)#

Unpin the memory associated with an mdspan object.

unpin_memory silently ignores regions that are not currently registered, so this is safe on fully- or partially-pinned slices (e.g. a pin() that failed partway and rolled back, or an already-unpinned slice).

Template Parameters:
  • T – The type of elements in the mdspan.

  • P – The properties of the mdspan.

Parameters:

s – The mdspan object to unpin memory for.