Skip to content

Following on comments for PUT#665

Merged
ipdemes merged 7 commits intonv-legate:branch-22.12from
ipdemes:put_follow
Oct 26, 2022
Merged

Following on comments for PUT#665
ipdemes merged 7 commits intonv-legate:branch-22.12from
ipdemes:put_follow

Conversation

@ipdemes
Copy link
Contributor

@ipdemes ipdemes commented Oct 20, 2022

This PR:
-fixes issue with raising error inside of the tmp kernel
-renames variables in wrap
-checking bounds in wrap only when mode ==raise

@ipdemes ipdemes added the category:task PR is a simple task and will not be included in release notes label Oct 20, 2022
@ipdemes ipdemes requested a review from manopapad October 20, 2022 18:38
new_point[i] = compute_idx(indx_ptrs[i][idx], shape[i]);
auto pair = compute_idx_omp(indx_ptrs[i][idx], shape[i]);
new_point[i] = pair.first;
is_out_of_bounds = is_out_of_bounds || pair.second;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we switch this snippet to something like:

if (pair.second) is_out_of_bounds = true;

This way we only actually do the atomic write if the flag is true, which should be a very rare occurrence.

Similar for other cases where we set an "out-of-bounds" flag in an OpenMP task, including for wrap.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense. pushing the change

@ipdemes ipdemes merged commit 5e5105f into nv-legate:branch-22.12 Oct 26, 2022
@ipdemes ipdemes deleted the put_follow branch January 12, 2023 05:21
mag1cp1n pushed a commit to mag1cp1n/cupynumeric that referenced this pull request Apr 22, 2025
* add setting for cupynu doctor mode

* fix type for Checkup.reference

* cls var for threshhold

* CheckupInfo -> Diagnostic

* bump legate hash

* update hash again

* add option for full traceback

* treat scalar key test more carefully

* Apply suggestions from code review

Co-authored-by: Manolis Papadakis <manopapad@gmail.com>

* check repeated item ops per line

* check repeated item ops per line

* filter internal hits

* single list for json output

* add reference

* docs

* typos

---------

Co-authored-by: Manolis Papadakis <manopapad@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:task PR is a simple task and will not be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants