← 返回首页
Fixes sub-array (oneapi) support for where by willyborn · Pull Request #3666 · 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

Fixes sub-array (oneapi) support for where#3666

Merged
christophe-murphy merged 2 commits into
arrayfire:masterfrom
willyborn:Fixes-sub-array(oneapi)-support-for-where
Jun 25, 2025
Merged

Fixes sub-array (oneapi) support for where#3666
christophe-murphy merged 2 commits into
arrayfire:masterfrom
willyborn:Fixes-sub-array(oneapi)-support-for-where

Conversation

Copy link
Copy Markdown
Contributor

Using sub-arrays in the where function results in undefined behaviour in the oneapi backend.

Description

The offsets were not taken into account in the oneapi code.

28bd6b0: adds the the function toTempFormat to the test helpers. This function generates the different temporary array formats (JIT array, SUB-array, Linear array, ...) used by arrayfire.
6fe4646: Adds the offset to the cl code files & adds extra tests for scan.

Is this a new feature or a bug fix? BUG Why these changes are necessary. PREVIOUSLY THE RESULT IS UNDEFINED FOR ABOVE SITUATION Potential impact on specific hardware, software or backends. ONEAPI only New functions and their functionality. NO Can this PR be backported to older versions? YES, changes are very local Future changes not implemented in this PR. NONE, although the function toTempFormat will be used in following PRs.

Changes to Users

None

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

willyborn changed the title Fixes sub array(oneapi) support for where Fixes sub-array (oneapi) support for where Jun 14, 2025
christophe-murphy self-requested a review June 25, 2025 19:30
Hide details View details christophe-murphy merged commit 0e49da2 into arrayfire:master Jun 25, 2025
1 of 4 checks passed
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.

2 participants

Footer

© 2026 GitHub, Inc.