Skip to content

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