[all-commits] [llvm/llvm-project] d6fb08: [mlri][ExecutionEngine] Don't globaly set CMake pr...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Fri Jan 27 13:06:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6fb08abf654b3ef9fdf990b3c11b7dde3fbbacd
      https://github.com/llvm/llvm-project/commit/d6fb08abf654b3ef9fdf990b3c11b7dde3fbbacd
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2023-01-27 (Fri, 27 Jan 2023)

  Changed paths:
    M mlir/lib/ExecutionEngine/CMakeLists.txt

  Log Message:
  -----------
  [mlri][ExecutionEngine] Don't globaly set CMake prefixes to find HIP

The HIP CMake files expect to find their own dependencies and don't
use or respect PATHS or HINTS, relying on CMAKE_PREFIX_PATH to contain
/opt/rocm and /opt/rocm/hip . This is not great for the rest of the
build. Therefore, copy the CMake prefix path, add the ROCm
directories, find HIP, and reset the path to its old value.

Reviewed By: arsenm

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




More information about the All-commits mailing list