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

GCCcore AMD offloading support requires ROCR-Runtime #14992

Closed
nordmoen opened this issue Feb 14, 2022 · 1 comment
Closed

GCCcore AMD offloading support requires ROCR-Runtime #14992

nordmoen opened this issue Feb 14, 2022 · 1 comment

Comments

@nordmoen
Copy link
Contributor

EasyBuild has support for building GCCcore with AMD support (easybuilders/easybuild-easyblocks#2578), however, without ROCR-Runtime no devices are picked up.

I suspect it worked during the PR because ROCm is usually globally installed and always in $PATH on AMD systems. I detected the error on our local system once I had removed the global ROCm install and instead relied only on EasyBuild.

An easy fix would be to add ROCR-Runtime to the dependencies if built withamdgcn support.

@Micket
Copy link
Contributor

Micket commented Mar 31, 2024

If we can enable rocm support in GCC with just a minimal header like we do with nvptx we can also consider enabling it by default (but i have no means of testing of this works, so it would be up to someone to contribute this.

But to add ROC* as dependencies by default for GCC won't be done as it would force most users to filter all that out instead, so this would need to be opt-in.

AMD users can achieve this with a custom parse hook
https://github.com/easybuilders/easybuild-framework/blob/develop/contrib/hooks/hpc2n_hooks.py
to anble the corresponding parameter, or just modify the GCC easyconfigs to add the flag and dependency.

@Micket Micket closed this as completed Mar 31, 2024
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

No branches or pull requests

2 participants