[mlir] Correctly handle HIP_PATH when ROCM_PATH is set
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Mon, 26 Sep 2022 20:46:17 +0000 (20:46 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Tue, 27 Sep 2022 14:33:33 +0000 (14:33 +0000)
commitbd77e1c827242bde00cbf2ec59e13ce21ef13755
treebf1dac3fe4f9c48ea10665aef62d063226be4b85
parent1e7a6c0874f57014132b857b2d201d6aaa75feee
[mlir] Correctly handle HIP_PATH when ROCM_PATH is set

With the CMake file as written, if code elsewhere had set ROCM_PATH,
then HIP_PATH would not be set, breaking the rest of the ROCm
execution utility handling.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D134674
mlir/lib/ExecutionEngine/CMakeLists.txt