Skip to content

[ROCM] Fix undefined symbols by adding library#8446

Merged
masahi merged 3 commits into
apache:mainfrom
mvermeulen:main
Jul 12, 2021
Merged

[ROCM] Fix undefined symbols by adding library#8446
masahi merged 3 commits into
apache:mainfrom
mvermeulen:main

Conversation

@mvermeulen

Copy link
Copy Markdown
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

masahi commented Jul 12, 2021

Copy link
Copy Markdown
Member

Thanks @mvermeulen I've also hit this problem.

cc @Lunderberg

@Lunderberg

Copy link
Copy Markdown
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