cuda::experimental::stf::pin

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

template<typename T, typename ...P>
bool cuda::experimental::stf::pin(mdspan<T, P...> &s)

Pins a slice in host memory for efficient use with CUDA primitives.

Template Parameters
  • T – memory type

  • dimensions – slice dimension

Parameters

s – slice to pin