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

[bug] MatrixType bug fix: Fix error with BLS #6664

Merged
merged 13 commits into from
Dec 2, 2022

Conversation

jim19930609
Copy link
Contributor

@jim19930609 jim19930609 commented Nov 18, 2022

Issue: #5819

Brief Summary

Fixed a set of issues to make BLS tests work.

  1. Modified GroupedNDRange generator to directly yield Expr with TensorType instead of _IntermediateMatrix when real_matrix=True
  2. Added support for rescale_index() to handle Expr with TensorType
  3. Added scalarization for indices of SNode ops

@netlify
Copy link

netlify bot commented Nov 18, 2022

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit cb93c33
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63898b27bebe290008c27325
😎 Deploy Preview https://deploy-preview-6664--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.

@jim19930609
Copy link
Contributor Author

/Rebase

@jim19930609
Copy link
Contributor Author

/rebase

@taichi-gardener
Copy link
Contributor

Rebase failed, please resolve the conflicts manually.

python/taichi/lang/snode.py Outdated Show resolved Hide resolved
taichi/transforms/scalarize.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@strongoier strongoier left a comment

Choose a reason for hiding this comment

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

Let's avoid calling matrix.Vector in the list case under real_matrix=True.

python/taichi/lang/snode.py Outdated Show resolved Hide resolved
python/taichi/lang/snode.py Outdated Show resolved Hide resolved
@strongoier strongoier merged commit 5c3afe1 into taichi-dev:master Dec 2, 2022
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: taichi-dev#5819

### Brief Summary
Fixed a set of issues to make BLS tests work.
1. Modified GroupedNDRange generator to directly yield `Expr with
TensorType` instead of `_IntermediateMatrix` when `real_matrix=True`
2. Added support for `rescale_index()` to handle `Expr with TensorType`
3. Added scalarization for `indices` of SNode ops

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yi Xu <[email protected]>
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