cuda::experimental::stf::address_is_pinned

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

template<typename T>
bool cuda::experimental::stf::address_is_pinned(T *p)

Checks whether an address is pinned or not.

Note that this call will erase the last CUDA error (see cudaGetLastError).

Parameters

p – address to check

Returns

bool value indicating if p corresponds to a piece of memory that is already pinned or not.