Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b973ce2
Device GUFuncs: Enforce void or unspecified return type
gmarkall Aug 11, 2022
4a7b0eb
Device ufuncs: remove long-deprecated argtypes / restype support
gmarkall Aug 11, 2022
507c352
Device ufuncs: Make the kernelmap hold multiple output dtypes
gmarkall Aug 11, 2022
a43cdfc
Device ufuncs: return multiple output dtypes from schedule
gmarkall Aug 11, 2022
7a0a7bc
Device ufuncs: support callsteps holding multiple outputs
gmarkall Aug 11, 2022
9ba159c
Device ufuncs: More generality for multiple outputs in callsteps
gmarkall Aug 11, 2022
e927fc7
Device ufuncs: allow multiple kernel return values in callsteps
gmarkall Aug 11, 2022
e8b6c97
Device ufuncs: correct parameter passing for multiple outputs
gmarkall Aug 11, 2022
08e1835
CUDA ufuncs: another multiple output test
gmarkall Aug 11, 2022
b1e2dd6
Device ufuncs: fix allocation of multiple outputs
gmarkall Aug 11, 2022
6acf970
Merge remote-tracking branch 'numba/main' into issue-8303-2
gmarkall Nov 17, 2022
a650d54
Merge remote-tracking branch 'numba/main' into issue-8303-2
gmarkall Dec 2, 2022
24592e4
Skip ufunc multiple output tests on simulator
gmarkall Dec 2, 2022
d3e16c4
Merge remote-tracking branch 'numba/main' into issue-8303-2
gmarkall Feb 22, 2023
575592f
Device ufuncs: some refactors for clarity
gmarkall Feb 22, 2023
00da70f
Device ufuncs: rename `norm_inputs` to `inputs`
gmarkall Feb 22, 2023
f63ac9e
Device ufuncs: corrext description of kernelmap
gmarkall Feb 22, 2023
dac4659
Device gufunc call steps: remove some state
gmarkall Feb 22, 2023
c82575c
Device ufuncs: remove kernel_returnvalues from state
gmarkall Feb 22, 2023
b30def6
Device gufuncs: Implement call steps as an ABC
gmarkall Feb 22, 2023
8ade7fc
Device gufuncs: refactor input and output preparation
gmarkall Feb 22, 2023
e4d9e42
Device GUFuncs: Add docs and refactor
gmarkall Feb 22, 2023
583762a
Merge remote-tracking branch 'numba/main' into issue-8303-2
gmarkall Mar 7, 2023
4879b05
Remove `max_blocksize` from CUDA GUFuncs
gmarkall Mar 7, 2023
56a98d2
Merge remote-tracking branch 'numba/main' into issue-8303-2
gmarkall Mar 12, 2023
d73b7ec
Some stylistic fixes from PR #8341 feedback
gmarkall Mar 15, 2023
1a5f2f5
Rename [G]UFuncMechanism.device_array() to allocate_device_array()
gmarkall Mar 15, 2023
00eee0c
deviceufunc: clarify generality of implementation (PR #8341 feedback)
gmarkall Mar 15, 2023
efca2c5
deviceufunc.py: refer to normalized args
gmarkall Mar 15, 2023
f2a4ae3
deviceufunc.py: Clarify some docstrings, ensure `post_process_outputs()`
gmarkall Mar 15, 2023
3fe2a03
CUDA GUFuncs: Ensure the correct number of args is passed
gmarkall Mar 16, 2023
1b13d1d
CUDA GUfuncs: edit pos and kwarg argument exception message
gmarkall Mar 16, 2023
8c166f8
Device ufuncs: simplify formatting of "positional argument[s]"
gmarkall Mar 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Device ufuncs: rename norm_inputs to inputs
The only work that the term `norm` is doing is making things more
confusing.
  • Loading branch information
gmarkall committed Feb 22, 2023
commit 00da70f5c009bfb878b8da653871655bfe37c22f
12 changes: 6 additions & 6 deletions numba/np/ufunc/deviceufunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def __call__(self, *args, **kws):
args, kws)
callsteps.prepare_inputs()
indtypes, schedule, outdtypes, kernel = self._schedule(
callsteps.norm_inputs, callsteps.outputs)
callsteps.inputs, callsteps.outputs)
callsteps.adjust_input_types(indtypes)
callsteps.allocate_outputs(schedule, outdtypes)
callsteps.prepare_kernel_parameters()
Expand Down Expand Up @@ -728,7 +728,7 @@ class GUFuncCallSteps(object):
'args',
'kwargs',
'outputs',
'norm_inputs',
'inputs',
'kernel_returnvalues',
'kernel_parameters',
'_copy_result_to_host',
Expand Down Expand Up @@ -783,17 +783,17 @@ def adjust_input_types(self, indtypes):
Attempt to cast the inputs to the required types if necessary
and if they are not device array.

Side effect: Only affects the element of `norm_inputs` that requires
Side effect: Only affects the elements of `inputs` that require
a type cast.
"""
for i, (ity, val) in enumerate(zip(indtypes, self.norm_inputs)):
for i, (ity, val) in enumerate(zip(indtypes, self.inputs)):
if ity != val.dtype:
if not hasattr(val, 'astype'):
msg = ("compatible signature is possible by casting but "
"{0} does not support .astype()").format(type(val))
raise TypeError(msg)
# Cast types
self.norm_inputs[i] = val.astype(ity)
self.inputs[i] = val.astype(ity)

def allocate_outputs(self, schedule, outdtypes):
retvals = []
Expand All @@ -816,7 +816,7 @@ def ensure_device(parameter):

return convert(parameter)

parameters = [ensure_device(p) for p in self.norm_inputs]
parameters = [ensure_device(p) for p in self.inputs]
assert all(self.is_device_array(a) for a in parameters)
self.kernel_parameters = parameters

Expand Down