MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / availKernelCacheSize

Function availKernelCacheSize

src/library/common/kern_cache.c:390–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390size_t
391availKernelCacheSize(struct KernelCache *kcache)
392{
393 size_t size;
394
395 KCACHE_LOCK(kcache);
396 size = (kcache->sizeLimit) ? (kcache->sizeLimit - kcache->totalSize) :
397 ~(size_t)0;
398 KCACHE_UNLOCK(kcache);
399
400 return size;
401}
402
403void
404cleanKernelCache(struct KernelCache *kcache)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected