ninetoothed.build#
- ninetoothed.build(premake, configs, *, caller=None, kernel_name=None, output_dir=None)#
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).caller – Who will call the compute kernel.
kernel_name – The name for the generated kernel.
output_dir – The directory to store the generated files.