[all-commits] [llvm/llvm-project] 849d44: [HIP] Fix rocm detection

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Fri Jul 10 20:21:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 849d4405f534434ebbda9889f24ff20122e34671
      https://github.com/llvm/llvm-project/commit/849d4405f534434ebbda9889f24ff20122e34671
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/CGCUDANV.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/lib/Driver/ToolChains/MSVC.cpp
    M clang/lib/Driver/ToolChains/ROCm.h
    A clang/test/Driver/Inputs/rocm/bin/.hipVersion
    M clang/test/Driver/hip-include-path.hip
    A clang/test/Driver/hip-launch-api.hip
    A clang/test/Driver/hip-std.hip
    A clang/test/Driver/hip-version.hip
    M clang/test/Driver/rocm-detect.cl
    M clang/test/Driver/rocm-detect.hip
    M clang/test/Driver/rocm-not-found.cl

  Log Message:
  -----------
  [HIP] Fix rocm detection

Do not detect device library by default in rocm detector.
Only detect device library in Rocm and HIP toolchain.

Separate detection of HIP runtime and Rocm device library.

Detect rocm path by version file in host toolchains.

Also added detecting rocm version and printing rocm
installation path and version with -v.

Fixed include path and device library detection for
ROCm 3.5.

Added --hip-version option. Renamed --hip-device-lib-path
to --rocm-device-lib-path.

Fixed default value for -fhip-new-launch-api.

Added default -std option for HIP.

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




More information about the All-commits mailing list