[all-commits] [llvm/llvm-project] 6aa74a: [HIP] Supports env var HIP_PATH

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Sun Apr 2 06:40:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6aa74ae29ffc01b486798552672171f5a622fc2a
      https://github.com/llvm/llvm-project/commit/6aa74ae29ffc01b486798552672171f5a622fc2a
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2023-04-02 (Sun, 02 Apr 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/test/Driver/rocm-detect.hip

  Log Message:
  -----------
  [HIP] Supports env var HIP_PATH

Currently HIP toolchain recognize env var ROCM_PATH and option --rocm-path
but only recognize --hip-path.

Some package management tools e.g. Spack relies on env var HIP_PATH to
be able to load different version of HIP dynamically.
(https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/hip/package.py#L446)
Therefore add support of env var HIP_PATH.

Reviewed by: Artem Belevich, Fangrui Song

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




More information about the All-commits mailing list