Skip to content

Conversation

@LeiWang1999
Copy link
Contributor

pull request #16893 refactored the TargetHasSVE function to support target assignment instead of using Target::Current(). This introduces a breaking API change for older projects that rely on TVM. However, the issue can be easily fixed by adding an Optional tag and a default value.

- Update TargetHasSVE to accept an optional Target parameter
- Add default behavior to use current target if no target is specified
- Simplify target checking logic in the function
@LeiWang1999 LeiWang1999 changed the title [Refactor]Improve TargetHasSVE function with optional target handling [Refactor] Improve TargetHasSVE function with optional target handling Feb 19, 2025
@cbalint13
Copy link
Contributor

Thanks @LeiWang1999 , it looks good to me.
I also planed some similar plus to enable it for riscv if "v" feature is present.

@cbalint13 cbalint13 merged commit 06def23 into apache:main Feb 19, 2025
10 checks passed
ShiboXing pushed a commit to ShiboXing/tvm that referenced this pull request Aug 10, 2025
apache#17666)

* Improve TargetHasSVE function with optional target handling

- Update TargetHasSVE to accept an optional Target parameter
- Add default behavior to use current target if no target is specified
- Simplify target checking logic in the function
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