Repository navigation
CUDA Dispatcher refactor - #7814
Conversation
|
gpuci run tests |
|
gpuci run tests |
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for doing this refactor, looks good on inspection.
| return cres | ||
|
|
||
|
|
||
| def compile_kernel(pyfunc, args, link, debug=False, lineinfo=False, |
There was a problem hiding this comment.
NOTE: it was determined that this was unused, so is removed.
| self.sig = sig | ||
|
|
||
|
|
||
| class ForAll(object): |
There was a problem hiding this comment.
Note: ForAll was considered a configuration like object so moved to dispatcher.py
| return tpb | ||
|
|
||
|
|
||
| class _Kernel(serialize.ReduceMixin): |
There was a problem hiding this comment.
Note: moved to dispatcher.py
| raise NotImplementedError(ty, val) | ||
|
|
||
|
|
||
| class _KernelConfiguration: |
There was a problem hiding this comment.
Note: moved to dispatcher.py
| self.stream, self.sharedmem) | ||
|
|
||
|
|
||
| class Dispatcher(_dispatcher.Dispatcher, serialize.ReduceMixin): |
There was a problem hiding this comment.
Note: moved to dispatcher.py
| GUFuncCallSteps) | ||
|
|
||
|
|
||
| class CUDAUFuncDispatcher(object): |
There was a problem hiding this comment.
Note: moved from dispatcher.py to here, keeping the ufunc logic together.
|
|
||
| def get_template_info(cls): | ||
| basepath = os.path.dirname( | ||
| os.path.dirname(os.path.dirname(cuda.__file__))) |
There was a problem hiding this comment.
NOTE: Changed to avoid import of numba itself.
|
gpuci run tests |
stuartarchibald
left a comment
There was a problem hiding this comment.
Re-approved following doc change. Thanks for the patch.
|
Buildfarm ID: |
Passed. |
This PR moves classes around in the CUDA target to better mirror the structure of the CPU target and core of Numba (see #7739)
Fixes #7739.