[all-commits] [llvm/llvm-project] 319476: [AMDGPU][OpenMP] Add amdgpu-arch tool to list AMD ...

pdhaliwal-amd via All-commits all-commits at lists.llvm.org
Tue Apr 20 22:06:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3194761d2763a471dc6426a3e77c1445cb9ded3b
      https://github.com/llvm/llvm-project/commit/3194761d2763a471dc6426a3e77c1445cb9ded3b
  Author: Pushpinder Singh <Pushpinder.Singh at amd.com>
  Date:   2021-04-21 (Wed, 21 Apr 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.h
    M clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
    A clang/test/Driver/Inputs/amdgpu-arch/amdgpu_arch_different
    A clang/test/Driver/Inputs/amdgpu-arch/amdgpu_arch_fail
    A clang/test/Driver/Inputs/amdgpu-arch/amdgpu_arch_gfx906
    A clang/test/Driver/Inputs/amdgpu-arch/amdgpu_arch_gfx908_gfx908
    A clang/test/Driver/amdgpu-openmp-system-arch-fail.c
    A clang/test/Driver/amdgpu-openmp-system-arch.c
    M clang/tools/CMakeLists.txt
    A clang/tools/amdgpu-arch/AMDGPUArch.cpp
    A clang/tools/amdgpu-arch/CMakeLists.txt

  Log Message:
  -----------
  [AMDGPU][OpenMP] Add amdgpu-arch tool to list AMD GPUs installed

This patch adds new clang tool named amdgpu-arch which uses
HSA to detect installed AMDGPU and report back latter's march.
This tool is built only if system has HSA installed.

The value printed by amdgpu-arch is used to fill -march when
latter is not explicitly provided in -Xopenmp-target.

Reviewed By: JonChesterfield, gregrodgers

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




More information about the All-commits mailing list