ninetoothed.build#
- ninetoothed.build(premake, configs, *, meta_parameters=None, caller=None, kernel_name=None, output_dir=None, lazy=False)#
Build a kernel from a
premakefunction andconfigs.- Parameters:
premake – A callable that returns the
arrangement,application, andtensorsfor a given configuration.configs – An iterable of configurations where each configuration is a tuple of
(args, kwargs, compilation_configs).argsandkwargsare passed topremake, andcompilation_configscontains compilation configurations forninetoothed.make(e.g.,num_warpsandnum_stages).meta_parameters – An iterable of meta-parameters that should be auto-tuned.
caller – Who will call the compute kernel.
kernel_name – The name for the generated kernel.
output_dir – The directory to store the generated files.
lazy – If
True, defer the actual build until the returned kernel is first called. Use this whenbuildis invoked at module import time and itsProcessPoolExecutorwould otherwise deadlock on the Python import lock.