Skip to content

Conversation

@stellaraccident
Copy link
Contributor

@stellaraccident stellaraccident commented Sep 24, 2025

  • Use CMAKE_DL_LIBS instead of hard-coded dl.
  • Use Threads::Threads instead of pthread.
  • Find libdrm via pkgconfig (consistent to how other ROCm projects do it as documented here: https://github.com/ROCm/TheRock/blob/main/docs/development/dependencies.md#libdrm)
  • Discovers the SONAME of libdrm_amdgpu used to build (and that matches headers) and puts this in a new config header so that it can be used by dlopen instead of the generic "libdrm_amdgpu.so" (which could be anything and is only guaranteed available in some cases with dev packages installed).

* Use CMAKE_DL_LIBS instead of hard-coded `dl`.
* Use Threads::Threads instead of `pthread`.
* Drop `rt` dep.
* Find libdrm via pkgconfig (consistent to how other ROCm projects do it as documented here: https://github.com/ROCm/TheRock/blob/main/docs/development/dependencies.md#libdrm)
stellaraccident and others added 3 commits September 24, 2025 15:40
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: Ie02c91a3a210ab7612fec670b2aad66d476d2cf3
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