[FEA] Support automatic generation of link
list for external code
#67
Labels
feature request
New feature or request
link
list for external code
#67
Numba-cuda extensions (e.g. nvmath-python) are frequently leaning on CUDA C++ implementations to support the core of their functionality.
One current UX limitation is that the kernel author is required to add the list of files and/or code to link with a kernel as a keyword argument to the
@cuda.jit
decorator, for example:from cufftdx_simple_fft_block.py
The
FFT
object supplies the files, and is created like:and is called inside the kernel as:
Rather than the user being required to link
FFT.files
, Numba should provide a mechanism to obtain and link the list of files / code (LTO-IR, PTX, CUDA C/C++ source, or binaries / objects etc.) at the point of compilation and linking from theFFT
object (or any implementation of a method, property, object, etc. backed by an extension). It is expected that the implementation (ofFFT
, in this example) may generate code (e.g. LTO-IR) at this point just prior to returning it back to Numba.The text was updated successfully, but these errors were encountered: