Skip to content
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

fix HSA/KFD load for system-wide installation #4218

Merged
merged 5 commits into from
May 23, 2024

Conversation

stalkerg
Copy link
Contributor

@stalkerg stalkerg commented Apr 19, 2024

It fix for a such issue: #4168
Some distros like Gentoo install HSA and ROCm libs as system-wide libraries instead /opt directory.
ROCM_PATH is more like build-time path, for runtime discovery better to use find_library especially if ROCM_PATH not here.
It's also will work if follow official ROCm instruction https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/native-install/post-install.html

@stalkerg
Copy link
Contributor Author

ohh you actually generate hsa and compgr files. Hmmm I will fix it.

@geohot
Copy link
Collaborator

geohot commented Apr 19, 2024

We are going to replace HSA with KFD soon anyway.

@stalkerg
Copy link
Contributor Author

We are going to replace HSA with KFD soon anyway.

seems like for KFD we still need libamd_comgr.so

@stalkerg
Copy link
Contributor Author

@nimlgen can you check again? Thank you.

@stalkerg stalkerg changed the title fix HSA load for system-wide installation fix HSA/KFD load for system-wide installation Apr 23, 2024
@stalkerg stalkerg requested a review from nimlgen April 23, 2024 02:20
@wozeparrot wozeparrot merged commit af56f0e into tinygrad:master May 23, 2024
16 checks passed
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.

None yet

4 participants