[][src]Function onednn_sys::dnnl_set_primitive_cache_capacity

pub unsafe extern "C" fn dnnl_set_primitive_cache_capacity(
    capacity: c_int
) -> dnnl_status_t

Sets a number of primitives that can be held in the primitive cache at a time.

@param capacity Primitive cache capacity to set. If a new @p capacity is less than a number of primitives that the primitive cache already has then the excess entries will be evicted. Setting the @p capacity to 0 clears the primitive cache and disables it. Concurrently modifying @p capacity is safe. @returns #dnnl_invalid_arguments/#dnnl::status::invalid_arguments if the @p capacity value is invalid, and #dnnl_success/#dnnl::status::success on success.