[all-commits] [llvm/llvm-project] 661d91: [clang] Make amdgpu-arch tool work on Windows

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Fri Jul 7 21:32:42 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 661d91a0fd4ad80ecc49ebb9e0fff01b4de2ce1c
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2023-07-08 (Sat, 08 Jul 2023)

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

  Log Message:
  [clang] Make amdgpu-arch tool work on Windows

Currently amdgpu-arch tool detects AMD GPU by dynamically
loading HSA runtime shared library and using HSA API's,
which is not available on Windows.

This patch makes it work on Windows by dynamically loading
HIP runtime dll and using HIP API's.

Reviewed by: Matt Arsenault, Joseph Huber, Johannes Doerfert

Differential Revision: https://reviews.llvm.org/D153725

More information about the All-commits mailing list