Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
48213b4
Initial support for Numpy ndarray subclasses.
Aug 18, 2020
3a89799
PyType to py_type
DrTodd13 Aug 24, 2020
46a4b6f
Implementation of USM-backed ndarray as dparray.
DrTodd13 Sep 20, 2020
e12ea86
Initial implementation of custom allocator support.
DrTodd13 Sep 20, 2020
765d8fa
Add some testing code for dparray but this isn't integrated with the …
DrTodd13 Sep 20, 2020
42ff174
Initial support for Numpy ndarray subclasses.
Aug 18, 2020
f07879b
PyType to py_type
DrTodd13 Aug 24, 2020
fdab211
Implementation of USM-backed ndarray as dparray.
DrTodd13 Sep 20, 2020
390e679
Initial implementation of custom allocator support.
DrTodd13 Sep 20, 2020
9a271b2
Add some testing code for dparray but this isn't integrated with the …
DrTodd13 Sep 20, 2020
a2d6403
Remove debug prints.
DrTodd13 Sep 29, 2020
6f2bcf5
Move np.ones_like to decorator like empty_like and zeros_like.
DrTodd13 Sep 29, 2020
ea0747f
Define a module for the USM-allocator for dparray.
DrTodd13 Sep 29, 2020
547ae8d
Add an external_allocator options to the Numba runtime.
DrTodd13 Sep 29, 2020
d8fc51a
Compile the new dppl_rt extension module.
DrTodd13 Sep 29, 2020
d89b613
Most NumPy functions are now imported into dparray module and the typ…
DrTodd13 Sep 29, 2020
e1f9a9f
Merge branch 'numpy_subclass' of https://github.com/IntelPython/numba…
DrTodd13 Sep 29, 2020
55e61c3
Fix NRT_Allocate signature issue.
DrTodd13 Sep 30, 2020
3cbf1c6
Switch to dpctl.
DrTodd13 Sep 30, 2020
699a8bf
Switch to dpctl.
DrTodd13 Sep 30, 2020
aa945b9
Register dparray typing and lowering functions in a better spot so no…
DrTodd13 Sep 30, 2020
107f9c3
Give dparray's an empty dict for __array_interface. We can gradually…
DrTodd13 Oct 1, 2020
ccafc8e
Add support for attribute typing so things like array.T (transpose) n…
DrTodd13 Oct 3, 2020
f954be9
Don't redefine symbol if we specifically overloaded it prior.
DrTodd13 Nov 4, 2020
0ad853a
Merge remote-tracking branch 'origin' into numpy_subclass
DrTodd13 Nov 4, 2020
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
PyType to py_type
  • Loading branch information
DrTodd13 committed Aug 24, 2020
commit 3a897997c170c106f911afba640317d8d94cf69b
2 changes: 1 addition & 1 deletion numba/core/pythonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1167,7 +1167,7 @@ def nrt_adapt_ndarray_to_python(self, aryty, ary, dtypeptr):

intty = ir.IntType(32)
# Embed the Python type of the array (maybe subclass) in the LLVM.
serial_aryty_pytype = self.unserialize(self.serialize_object(aryty.PyType))
serial_aryty_pytype = self.unserialize(self.serialize_object(aryty.py_type))

fnty = Type.function(self.pyobj,
[self.voidptr, self.pyobj, intty, intty, self.pyobj])
Expand Down
4 changes: 2 additions & 2 deletions numba/core/types/npytypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ class Array(Buffer):
Type class for Numpy arrays.
"""

def __init__(self, dtype, ndim, layout, PyType=np.ndarray, readonly=False, name=None,
def __init__(self, dtype, ndim, layout, py_type=np.ndarray, readonly=False, name=None,
aligned=True, addrspace=None):
self.PyType = PyType
self.py_type = py_type
if readonly:
self.mutable = False
if (not aligned or
Expand Down