cuda::experimental::stf::pin_memory

Defined in include/cuda/experimental/__stf/utility/memory.cuh

template<typename T>
cudaError_t cuda::experimental::stf::pin_memory(T *p, size_t n)

Pins host memory for efficient use with CUDA primitives.

Template Parameters

T – memory type

Parameters
  • p – pointer to beginning of memory block

  • n – number of elements in the block