From 9627cb82ad8be058c517ef80b0c5a4dcd433895c Mon Sep 17 00:00:00 2001 From: Marcin Zalewski Date: Fri, 6 Dec 2024 22:34:56 -0800 Subject: [PATCH] 24.11.01 release --- README.md | 1 + conda/conda-build/meta.yaml | 2 +- cupynumeric/_array/array.py | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9451246025..edf299c245 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ limitations under the License. --> + # cuPyNumeric cuPyNumeric is a [Legate](https://github.com/nv-legate/legate.core) library diff --git a/conda/conda-build/meta.yaml b/conda/conda-build/meta.yaml index 2aaddb22b1..a649aeaea5 100644 --- a/conda/conda-build/meta.yaml +++ b/conda/conda-build/meta.yaml @@ -40,7 +40,7 @@ {% set legate_version = (version.rsplit('.',1)[0] ~ ".dev" ~ "|>=" ~ version.rsplit('.',1)[0]) %} {% else %} {% set version = environ.get('GIT_DESCRIBE_TAG', placeholder_version).lstrip('v') %} - {% set legate_version = version %} + {% set legate_version = "24.11.00" %} {% endif %} package: diff --git a/cupynumeric/_array/array.py b/cupynumeric/_array/array.py index 1787affe62..388147185f 100644 --- a/cupynumeric/_array/array.py +++ b/cupynumeric/_array/array.py @@ -313,6 +313,17 @@ def data(self) -> memoryview: """ return self.__array__().data + def __buffer__(self, flags: int, /) -> memoryview: + """ + Python buffer object pointing to the start of the array's data. + + Notes + ----- + This causes the entire (potentially distributed) array to be collected + into one memory. + """ + return self.__array__().__buffer__(flags) # type: ignore + @property def dtype(self) -> np.dtype[Any]: """