Next topic

This Page

Quick search

An object used to generate compiled extensions from Numba-compiled
Python functions. extension_name is the name of the extension
to be generated. source_module is the Python module
containing the functions; if None, it is inferred by examining
the call stack.

(read-write attribute) The name of the CPU model to generate code for.
This will select the appropriate instruction set extensions. By
default, a generic CPU is selected in order to produce portable code.

Recognized names for this attribute depend on the current architecture
and LLVM version. If you have LLVM installed, llc-mcpu=help
will give you a list. Examples on x86-64 are "ivybridge",
"haswell", "skylake" or "broadwell". You can also give
the value "host" which will select the current host CPU.

Return a distutils.core.Extension instance allowing
to integrate generation of the extension module in a conventional
setup.py-driven build process. The optional kwargs let you
pass optional parameters to the Extension
constructor.