KernelRegistry
-
struct KernelRegistry
A registry can be used to cache kernel compilations. Each registry is essentially a table that maps
IKernelDescriptorobjects toWisdomKernelobjects.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
WisdomKernelassociated with the given descriptor. This will instantiate a newWisdomKernelif not yet available.
-
inline explicit KernelRegistry(Compiler compiler = default_compiler(), WisdomSettings settings = default_wisdom_settings())