Skip to content

Conversation

@syurkevi
Copy link
Contributor

@syurkevi syurkevi commented Sep 28, 2021

Fixes Issue #3062 where countByKey would give incorrect results for any n > 128 (block size). When there is more than one block's worth of reduction, multiple reduction iterations occur.
The af_nonzero_t transformation would reset the reduced values back to a non-zero flag (1) instead of the actual count between reduction iterations. This operator is now replaced with the af_add_t operator in consequent iterations.

  • Rebased on latest master
  • Code compiles
  • Tests pass

@umar456 umar456 merged commit 2444ef5 into master Oct 1, 2021
@syurkevi syurkevi deleted the countbykeyfix branch October 4, 2021 15:52
@9prady9 9prady9 added this to the 3.8.1 milestone Oct 5, 2021
@9prady9 9prady9 added the fix label Oct 5, 2021
9prady9 pushed a commit to 9prady9/arrayfire that referenced this pull request Oct 5, 2021
* fix transform operator for countByKey

(cherry picked from commit 2444ef5)
syurkevi added a commit that referenced this pull request Dec 28, 2021
* fix transform operator for countByKey

(cherry picked from commit 2444ef5)
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.

4 participants