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

[CMake] Autodetect HSA_AMDGPU_GPU_TARGET #35

Closed
wants to merge 1 commit into from
Closed

[CMake] Autodetect HSA_AMDGPU_GPU_TARGET #35

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Apr 21, 2016

Instead of hardcoding the HSA_AMDGPU_GPU_TARGET at compile time,
autodetect it at runtime from the KFD topology.

Change-Id: I00af68084869ab4d439e70cf8816c1c8868f224d

Instead of hardcoding the HSA_AMDGPU_GPU_TARGET at compile time,
autodetect it at runtime from the KFD topology.

Change-Id: I00af68084869ab4d439e70cf8816c1c8868f224d

if (NOT (HSA_AMDGPU_GPU_TARGET STREQUAL "kaveri" OR
HSA_AMDGPU_GPU_TARGET STREQUAL "carrizo" OR
HSA_AMDGPU_GPU_TARGET STREQUAL "fiji"))
HSA_AMDGPU_GPU_TARGET STREQUAL "fiji" OR
HSA_AMDGPU_GPU_TARGET STREQUAL ""))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking instead of having an empty string to enable auto detection, how about using "auto"

@whchung
Copy link
Collaborator

whchung commented Apr 22, 2016

@arodrigx7 Besides address comment from @scchan to replace empty string to "auto", could you also modify this pull request so it goes to "develop" branch?

Starting from roc-1.0 we'd like to change branching strategy so master branch only carries release-ready commits. All latest development commits go into "develop" branch.

@ghost
Copy link
Author

ghost commented Apr 22, 2016

No problem, I'll update the pull request tomorrow.

This pull request was closed.
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