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] Fix argpack with struct and vector #8403

Merged
merged 1 commit into from
Nov 3, 2023
Merged

[bug] Fix argpack with struct and vector #8403

merged 1 commit into from
Nov 3, 2023

Conversation

lin-hitonami
Copy link
Contributor

@lin-hitonami lin-hitonami commented Nov 2, 2023

Issue: #8385

Brief Summary

🤖 Generated by Copilot at 33db838

Added support for struct arguments in kernels using ArgPack types and fixed a bug with nested struct offsets. Added tests for ArgPack with struct and vector types.

Walkthrough

🤖 Generated by Copilot at 33db838

  • Import Struct class from taichi.lang.struct to support struct arguments (link)
  • Update isinstance check to include Struct as a possible data type (link)
  • Fix offset bug for nested structs by moving iterator back one position (link)
  • Add three tests for passing struct and vector types as ArgPack elements to kernels in test_argpack.py (link)

Copy link

netlify bot commented Nov 2, 2023

Deploy Preview for docsite-preview ready!

Name Link
🔨 Latest commit 33db838
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/65433a88ef88520008ce0b6f
😎 Deploy Preview https://deploy-preview-8403--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 configuration.

@lin-hitonami lin-hitonami marked this pull request as ready for review November 2, 2023 06:02
@lin-hitonami lin-hitonami added this to the v1.7.0 milestone Nov 2, 2023
@jim19930609 jim19930609 merged commit ff251e1 into master Nov 3, 2023
27 checks passed
@lin-hitonami lin-hitonami deleted the fix-argpack branch November 13, 2023 03:05
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