Skip to content

Fix const array indexing inside gfor #3078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Conversation

9prady9
Copy link
Member

@9prady9 9prady9 commented Jan 13, 2021

Description

Indexing a const array inside GFOR produced results which aren't identical to results generated from indexing a non-const array.
Fixes: #3073

Changes to Users

Identical behavior when indexing const vs non-const array inside gfor.

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass - test_inverse_dense_opencl seems to fail after this change, looking into it why, although the specific failing test seems to run fine if run via filter argument to the test program.
  • [ ] Functions added to unified API
  • [ ] Functions documented

@9prady9 9prady9 added the fix label Jan 13, 2021
@9prady9 9prady9 added this to the 3.8.1 milestone Jan 13, 2021
@9prady9 9prady9 requested a review from umar456 January 13, 2021 00:40
@9prady9
Copy link
Member Author

9prady9 commented Jan 13, 2021

Doesn't seem like inverse_dense failure on my local machine is related to this change. I think somehow cpu_randu helper is causing it because if I don't use it and use GPU function to generate data for inverse_dense, the tests pass in every run just fine.

@9prady9 9prady9 marked this pull request as ready for review January 13, 2021 01:27
@9prady9 9prady9 merged commit 6ce9d9a into arrayfire:master Jan 22, 2021
@9prady9 9prady9 deleted the issue3073 branch January 22, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Different indexing behavior for const vs non-const array
2 participants