[all-commits] [llvm/llvm-project] e8fd99: [HIP] support --offload-arch=native

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Tue Dec 13 07:11:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e8fd998e6194d8749b83b30813e3cb74e5261770
      https://github.com/llvm/llvm-project/commit/e8fd998e6194d8749b83b30813e3cb74e5261770
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.h

  Log Message:
  -----------
  [HIP] support --offload-arch=native

This patch detects system GPU and use them
in --offload-arch if 'native' is specified. If system GPU
cannot be detected clang will fall back to the default GPU arch.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list