Skip to content
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

[Lang] Migrate irpass::scalarize() after irpass::offload() #7919

Merged
merged 3 commits into from
May 7, 2023

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented May 4, 2023

Issue: #

Brief Summary

🤖 Generated by Copilot at c9e5993

This pull request refactors scalarization for matrix operations to optimize different backends. It moves scalarization from compile_to_offloads to compile_to_executable for LLVM, and keeps it in compile_to_offloads for Metal.

Walkthrough

🤖 Generated by Copilot at c9e5993

  • Remove scalarization before offloading for non-Metal backends (link)
  • Add scalarization before offloading for Metal backend only (link)

@netlify
Copy link

netlify bot commented May 4, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit e45c557
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/6454a666ded8de0008096208
😎 Deploy Preview https://deploy-preview-7919--docsite-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@dream189free dream189free left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jim19930609 jim19930609 merged commit 1ee025b into taichi-dev:master May 7, 2023
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
…v#7919)

Issue: #

### Brief Summary

<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at c9e5993</samp>

This pull request refactors scalarization for matrix operations to
optimize different backends. It moves scalarization from
`compile_to_offloads` to `compile_to_executable` for LLVM, and keeps it
in `compile_to_offloads` for Metal.

### Walkthrough

<!--
copilot:walkthrough
-->
### <samp>🤖 Generated by Copilot at c9e5993</samp>

* Remove scalarization before offloading for non-Metal backends
([link](https://github.com/taichi-dev/taichi/pull/7919/files?diff=unified&w=0#diff-8fde186587db97b3bbc8a856e59bc4467b30257335b0fad064b4eebd521a912bL126-L133))
* Add scalarization before offloading for Metal backend only
([link](https://github.com/taichi-dev/taichi/pull/7919/files?diff=unified&w=0#diff-8fde186587db97b3bbc8a856e59bc4467b30257335b0fad064b4eebd521a912bR138-R145))
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