KernelRegistry
-
struct KernelRegistry
A registry can be used to cache kernel compilations. Each registry is essentially a table that maps
IKernelDescriptor
objects toWisdomKernel
objects.There is a single global registry that is available with
default_registry
. However, it is also possible to construct a localKernelRegistry
.This class is thread-safe.
Public Functions
-
inline explicit KernelRegistry(Compiler compiler = default_compiler(), WisdomSettings settings = default_wisdom_settings())
Construct new registry.
-
inline WisdomKernel &lookup(KernelDescriptor descriptor) const
Look up the
WisdomKernel
associated with the given descriptor. This will instantiate a newWisdomKernel
if not yet available.
-
inline explicit KernelRegistry(Compiler compiler = default_compiler(), WisdomSettings settings = default_wisdom_settings())