cuda::experimental::stf::address_is_pinned#

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.