Cache

cvcuda.cache_size(scope: cvcuda.ThreadScope = <ThreadScope.GLOBAL: 0>) → int

Returns the quantity of items in the NVCV Python cache

Parameters:

scope (nvcv.ThreadScope) – Thread scope that must be either nvcv.ThreadScope.GLOBAL or nvcv.ThreadScope.LOCAL.

cvcuda.clear_cache(scope: cvcuda.ThreadScope = <ThreadScope.GLOBAL: 0>) → None

Clears the NVCV Python cache

Parameters:

scope (nvcv.ThreadScope) – Thread scope that must be either nvcv.ThreadScope.GLOBAL or nvcv.ThreadScope.LOCAL.

cvcuda.current_cache_size_inbytes() → int

Returns the current cache size [in bytes] for the current CUDA device.

cvcuda.get_cache_limit_inbytes() → int

Returns the cache limit [in bytes] for the current CUDA device.

cvcuda.set_cache_limit_inbytes(arg0: SupportsInt | SupportsIndex) → None

Sets the cache limit [in bytes] for the current CUDA device.