cuda.bindings._v2.driver.mem_get_allocation_granularity#
- cuda.bindings._v2.driver.mem_get_allocation_granularity(prop, int option) size_t#
Calculates either the minimal or recommended granularity.
Calculates either the minimal or recommended granularity for a given allocation specification and returns it in granularity. This granularity can be used as a multiple for alignment, size, or address mapping.
- Parameters:
prop (intptr_t) – Property for which to determine the granularity for.
option (MemAllocationGranularityFlags) – Determines which granularity to return.
- Returns:
Returned granularity.
- Return type:
size_t
See also
cuMemGetAllocationGranularity