Skip to content

[clang][amdgpu] Add LLVM_ENABLE_HSA flag or similar #60660

Open
@aaronmondal

Description

Recent patches have updated the amdgpu-arch tool.

With the current behavior, if a local HSA is found, the tool will be built with it.

HSA is part of the rocr-runtime which depends on the rocm-device-libs and those need clang to build. If an older HSA is on the system the tool may fail to build with a newer Clang, i.e. Clang will fail to build and the error will only be noticeable during linking of the tool. Old clang won't be able to build new HSA either.

Deadlock, until the old HSA is forcefully removed :(

I think there needs to be an LLVM_ENABLE_HSA flag or similar and that flag needs to be disabled by default. Otherwise we may get deadlocks on source based distros where users need to jump through hoops to get things running again.

cc @jhuber6 @JonChesterfield @arsenm @littlewu2508 @mgorny

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

clang-tools-extracmakeBuild system in general and CMake in particular

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions