KernelRegistry

struct KernelRegistry

A registry can be used to cache kernel compilations. Each registry is essentially a table that maps IKernelDescriptor objects to WisdomKernel objects.

There is a single global registry that is available with default_registry. However, it is also possible to construct a local KernelRegistry.

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 new WisdomKernel if not yet available.