You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get around the limitation of being unable to pass custom user-provided functions to a CUDA-kernel. The tuple FUNCS is being generated dynamically (from a list or array), then a custom version of demo is supposed to be compiled. All functions in FUNCS have the exact same signature. For further context / use-case, see here.
The text was updated successfully, but these errors were encountered:
Dynamically building custom functions around arbitrary lists/tuples of functions is non-trivial ... It took me a while to fully piece it together in a semi-robust fashion. In case someone comes across this later, the full workaround looks somewhat like this:
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
i.e. it's possible to run as 'python bug.py'.
The following example results in
NumbaNotImplementedError
:A similar thing does work on the CPU, with a warning though:
I am trying to get around the limitation of being unable to pass custom user-provided functions to a CUDA-kernel. The tuple
FUNCS
is being generated dynamically (from a list or array), then a custom version ofdemo
is supposed to be compiled. All functions inFUNCS
have the exact same signature. For further context / use-case, see here.The text was updated successfully, but these errors were encountered: