8000 [ROCM] Fix undefined symbols by adding library by mvermeulen · Pull Request #8446 · apache/tvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ROCM] Fix undefined symbols by adding library #8446

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

Merged
merged 3 commits into from
Jul 12, 2021
Merged

[ROCM] Fix undefined symbols by adding library #8446

merged 3 commits into from
Jul 12, 2021

Conversation

mvermeulen
Copy link
Contributor

PR #8178 added a check for undefined symbols when the target was linked.

This broke the ROCm build because some symbols were resolved by libhsaruntime64.so which is present at execution time, but not present at link time. This PR fixes the unresolved symbol issue by linking with libhsaruntime64.so if present.

@masahi masahi merged commit 1d7a9e9 into apache:main Jul 12, 2021
@masahi
Copy link
Member
masahi commented Jul 12, 2021

Thanks @mvermeulen I've also hit this problem.

cc @Lunderberg

@Lunderberg
Copy link
Contributor

@mvermeulen Thank you for the fix! I had initially thought that the CI would catch a failing compile, but it looks like the CI's OSX compilation only has LLVM/Metal runtimes enabled, and not ROCm.

ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
* Add libhsa-runtime64 reference.

* Remove lib in library definition.
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
* Add libhsa-runtime64 reference.

* Remove lib in library definition.
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
0