Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d4b6d69
towards implementing put
ipdemes Sep 9, 2022
4dd090a
fixing errors and improving test
ipdemes Sep 12, 2022
fc6ebe7
updating documentation
ipdemes Sep 12, 2022
1d87fd7
code clean-up
ipdemes Sep 12, 2022
15db53e
adding missig pragams for openmp
ipdemes Sep 13, 2022
d01e17c
fixing compile-time errors
ipdemes Sep 13, 2022
48d1920
fixing mypy errors
ipdemes Sep 13, 2022
458f1a2
fixing issue whith converting futures for put + modifying tests
ipdemes Sep 13, 2022
e67d0f3
adding check for repeated entires in indices array
ipdemes Sep 13, 2022
5b8a301
fixing mypy errors
ipdemes Sep 13, 2022
dd5f0a3
Update error message for wrong clip mode
ipdemes Sep 19, 2022
ca965ed
update warning message
ipdemes Sep 19, 2022
6e05573
adding _warn_and_convert function
ipdemes Sep 19, 2022
a821bf6
Merge branch 'put' of github.com:ipdemes/cunumeric into put
ipdemes Sep 19, 2022
9ead87f
fixed formatting error
ipdemes Sep 19, 2022
24cb096
fixing mypy errors
ipdemes Sep 19, 2022
ba0ec13
Merge remote-tracking branch 'origin/branch-22.10' into put
ipdemes Sep 27, 2022
41e8406
addressing PR comments
ipdemes Sep 27, 2022
4814b4c
Avoid emitting new warnings
manopapad Sep 27, 2022
5f64cad
fixing logic for PUT in the case of transformed arrays
ipdemes Sep 27, 2022
d5c4414
_warn_and_convert checks the target type already
manopapad Sep 28, 2022
9a8a3ca
addressing PR comments
ipdemes Sep 28, 2022
c91042a
Typo
manopapad Sep 28, 2022
5d6c9fa
adding check for out-of-the-bounds indices
ipdemes Sep 28, 2022
4ffae77
fixing the case when scalar walue needs to be wrapped
ipdemes Sep 28, 2022
f8af1de
adding bounds check to the cuda kernel
ipdemes Oct 6, 2022
f5b92d3
changing name of a bool variable in _convert_future_to_regionfield me…
ipdemes Oct 6, 2022
c893ee5
fixing the cases for scalar lhs in put operation
ipdemes Oct 7, 2022
9edae62
fixing out of the bounds check for ZIP cuda kernel
ipdemes Oct 7, 2022
7f59b15
fixing logic for negative indices
ipdemes Oct 7, 2022
6a9545f
Merge remote-tracking branch 'origin/branch-22.12' into put
ipdemes Oct 10, 2022
ed60e72
Merge branch 'branch-22.12' into put
manopapad Oct 13, 2022
67aa0ad
Update a leftover use of auto_convert
manopapad Oct 13, 2022
88cca6d
addressing PR comments
ipdemes Oct 14, 2022
92cf417
fixing logic for the bounds check
ipdemes Oct 17, 2022
e489d56
addressing PR comments
ipdemes Oct 18, 2022
d363758
Merge remote-tracking branch 'origin/branch-22.12' into put
ipdemes Oct 18, 2022
58cd174
addressing PR comments
ipdemes Oct 18, 2022
34fc00b
Merge remote-tracking branch 'origin/branch-22.12' into put
ipdemes Oct 19, 2022
be9f556
Merge branch 'branch-22.12' into put
ipdemes Oct 19, 2022
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
5 changes: 3 additions & 2 deletions cunumeric/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -2508,8 +2508,9 @@ def put(
indices = indices.ravel()

if self.shape == ():
if indices.any() is True:
raise ValueError("Indices out of bounds")
if mode == "raise":
if indices.min() < 0 or indices.max() > 0:
Comment thread
manopapad marked this conversation as resolved.
Outdated
raise ValueError("Indices out of bounds")
if values.shape == ():
v = values
else:
Expand Down