Skip to content

Conversation

@MasterJH5574
Copy link
Contributor

This PR fixes a bug in the current system library symbol lookup.

Prior to this PR, the lookup key always concatenates symbol_prefix_ and name. However, the name may or may not have already contained the symbol prefix. And when it does contain the symbol prefix, the concantenated string will have duplicate symbol prefix, which leads to the lookup failure, because in the compiled library the symbol prefix only appears once.

This PR changes the lookup behavior to check both cases.

This PR fixes a bug in the current system library symbol lookup.

Prior to this PR, the lookup key always concatenates `symbol_prefix_`
and `name`. However, the `name` may or may not have already contained
the symbol prefix. And when it does contain the symbol prefix, the
concantenated string will have duplicate symbol prefix, which leads
to the lookup failure, because in the compiled library the symbol
prefix only appears once.

This PR changes the lookup behavior to check both cases.
@mshr-h mshr-h merged commit 485a309 into apache:main Sep 10, 2025
13 checks passed
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
tqchen pushed a commit to tqchen/tvm that referenced this pull request Sep 13, 2025
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