cuda.bindings._v2.driver.mem_host_get_flags#

cuda.bindings._v2.driver.mem_host_get_flags(intptr_t p) → unsigned int#

Passes back flags that were used for a pinned allocation.

Passes back the flags p_flags that were specified when allocating the pinned host buffer p allocated by cuMemHostAlloc. mem_host_get_flags() will fail if the pointer does not reside in an allocation performed by cuMemAllocHost() or mem_host_alloc().

Parameters:

p (intptr_t) – Host pointer.

Returns:

Returned flags word.

Return type:

unsigned int

See also

cuMemHostGetFlags