Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow moddims operations to be part of the JIT tree if possible #3177

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 4 commits into from
Oct 13, 2021

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Oct 1, 2021

This PR modifies the moddims function so that it can be included into the JIT tree if the array object is linear. This change makes it possible to perform automatic broadcasting in a future change.

Description

  • Create a moddims node which can be added to a JIT tree if the Array object is linear.
  • Move the moddims function to the common namespace

Changes to Users

Users shouldn't need to make changes to code to take advantage of this change.

Checklist

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

@umar456 umar456 requested review from 9prady9 and syurkevi October 1, 2021 21:47
src/api/c/handle.hpp Outdated Show resolved Hide resolved
src/api/c/optypes.hpp Show resolved Hide resolved
src/backend/common/CMakeLists.txt Show resolved Hide resolved
src/backend/common/moddims.hpp Outdated Show resolved Hide resolved
src/backend/cpu/kernel/Array.hpp Outdated Show resolved Hide resolved
@9prady9 9prady9 mentioned this pull request Oct 11, 2021
2 tasks
@9prady9 9prady9 added this to the 3.8.1 milestone Oct 13, 2021
@9prady9 9prady9 merged commit a800d9f into arrayfire:master Oct 13, 2021
9prady9 pushed a commit to 9prady9/arrayfire that referenced this pull request Oct 13, 2021
…yfire#3177)

* Implement JIT moddims for CUDA and OpenCL

* Create a moddims node instead of modifying setDataDims

* Cleanup headers after moddims change

* Address feedback

(cherry picked from commit a800d9f)
syurkevi pushed a commit that referenced this pull request Dec 28, 2021
* Implement JIT moddims for CUDA and OpenCL

* Create a moddims node instead of modifying setDataDims

* Cleanup headers after moddims change

* Address feedback

(cherry picked from commit a800d9f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.