[all-commits] [llvm/llvm-project] 129a1a: [amdgpu-arch] Replace use of HSA with reading sysf...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Nov 19 03:35:27 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 129a1a27da34eab1e358f4a403f05e8efe44c586
      https://github.com/llvm/llvm-project/commit/129a1a27da34eab1e358f4a403f05e8efe44c586
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-11-19 (Tue, 19 Nov 2024)

  Changed paths:
    M clang/tools/amdgpu-arch/AMDGPUArch.cpp
    R clang/tools/amdgpu-arch/AMDGPUArchByHSA.cpp
    A clang/tools/amdgpu-arch/AMDGPUArchByKFD.cpp
    M clang/tools/amdgpu-arch/CMakeLists.txt

  Log Message:
  -----------
  [amdgpu-arch] Replace use of HSA with reading sysfs directly (#116651)

Summary:
For Linux systems, we currently use the HSA library to determine the
installed GPUs. However, this isn't really necessary and adds a
dependency on the HSA runtime as well as a lot of overhead. Instead,
this patch uses the `sysfs` interface exposed by `amdkfd` to do this
directly.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list