-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
numba affords the developer the ability to overload functions, methods and attributes, as well as implement intrinsics https://numba.readthedocs.io/en/stable/extending/index.html
I've found this very useful for CPU targets and it seems that similar functionality is available in numba CUDA:
numba-cuda/numba_cuda/numba/cuda/extending.py
Lines 133 to 150 in da60f0a
| def overload( | |
| func, | |
| jit_options=None, | |
| strict=True, | |
| inline="never", | |
| prefer_literal=False, | |
| target="cuda", | |
| **kwargs, | |
| ): | |
| """ | |
| A decorator marking the decorated function as typing and implementing | |
| *func* in nopython mode. | |
| The decorated function will have the same formal parameters as *func* | |
| and be passed the Numba types of those parameters. It should return | |
| a function implementing *func* for the given types. | |
| Here is an example implementing len() for tuple types:: |
but it doesn't appear in the documentation https://nvidia.github.io/numba-cuda/index.html. Is this functionality supported?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested