-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
ROCm: Allow setting compilation target #2581
Conversation
Hi @rlrs, thanks for submitting the PR. A quick question: How is the environment variable different from |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. LGTM! Thanks for the clarification!
Oh it seems like |
Currently, building the package requires a machine that has a GPU with the desired architecture. This is however not necessary, you can easily compile for another target, even if the build machine has no GPU at all.
This PR simply enables one to set the
GPU_ARCHS
environment variable, for example asGPU_ARCHS=gfx90a
or GPU_ARCHS=gfx90a;gfx1100` if you want to build for multiple targets.This resolves #2127.