Skip to content

Conversation

@ZzEeKkAa
Copy link
Contributor

Previous implementation used to work only with flat indexes. This one accept multidimentional indexes.

Question: Should we remove default value for the index? It will cause TypeError on 2- and 3-dimentional arrays?

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@ZzEeKkAa ZzEeKkAa self-assigned this Feb 26, 2024
@diptorupd
Copy link
Contributor

Question: Should we remove default value for the index? It will cause TypeError on 2- and 3-dimentional arrays?

Yes, I think so. It was a bad design initially also. We should force people to be explicit with creation of atomic ref.

@ZzEeKkAa ZzEeKkAa force-pushed the feature/accept_multidimentional_atomic_indexes branch from 551749c to 7b4e818 Compare February 26, 2024 21:03
diptorupd
diptorupd previously approved these changes Feb 26, 2024
Copy link
Contributor

@diptorupd diptorupd left a comment

Choose a reason for hiding this comment

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

LGTM! Good catch.

@diptorupd diptorupd self-requested a review February 27, 2024 03:32
@ZzEeKkAa ZzEeKkAa force-pushed the feature/accept_multidimentional_atomic_indexes branch from 867c370 to 13e6a9d Compare February 27, 2024 14:02
@ZzEeKkAa ZzEeKkAa enabled auto-merge February 27, 2024 14:02
@ZzEeKkAa ZzEeKkAa disabled auto-merge February 27, 2024 20:11
@ZzEeKkAa ZzEeKkAa merged commit 2df6fab into main Feb 27, 2024
@ZzEeKkAa ZzEeKkAa deleted the feature/accept_multidimentional_atomic_indexes branch February 27, 2024 20:12
github-actions bot added a commit that referenced this pull request Feb 27, 2024
…onal_atomic_indexes

Accept multidimentional atomic indexes 2df6fab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants