← 返回首页
fix fallthrough in reduce_by_key_common for u8 by verstatx · Pull Request #3503 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

fix fallthrough in reduce_by_key_common for u8#3503

Merged
christophe-murphy merged 1 commit into
arrayfire:masterfrom
verstatx:reduce_by_key_common-bugfix
Feb 17, 2025
Merged

fix fallthrough in reduce_by_key_common for u8#3503
christophe-murphy merged 1 commit into
arrayfire:masterfrom
verstatx:reduce_by_key_common-bugfix

Conversation

Copy link
Copy Markdown
Contributor

Description

Bug fix for reduce_by_key_common where u8 would run reduce_key for u8, and then f16 but with the u8 arrays.

Affects af::minByKey and af::maxByKey, which would throw/segfault for u8 depending on backend.

The ReduceByKey tests related to this bug were updated so that they run for each supported type.

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass

This fixes minByKey/maxByKey for u8.
melonakos added this to the 3.10 milestone Feb 5, 2025
christophe-murphy self-requested a review February 17, 2025 20:28
christophe-murphy merged commit 553c38d into arrayfire:master Feb 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants

Footer

© 2026 GitHub, Inc.