[MLIR][GPU] Make the path to ROCm a runtime option
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Thu, 18 Nov 2021 21:42:42 +0000 (21:42 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Fri, 19 Nov 2021 20:51:54 +0000 (20:51 +0000)
commit20f79f8caa3a333a34021f0028e828f97d79c2a1
treeb1fa86a63182a5fae0865bda4835c5943aa528f0
parent3fcdd182e9784cb9c2d7ff54b44ec00bd6c91a87
[MLIR][GPU] Make the path to ROCm a runtime option

Our current build assumes that the path to ROCm we find at build time
will be the path at which ROCm is located when the built code is
executed. This commit adds a --rocm-path option to SerializeToHsaco,
and removes the HIP dependency that the SerializeToHsaco previously had.

Depends on D114113

(though the dependency is to ensure the diffs apply cleanly and to capture the dependency on D114107)

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D114114
mlir/lib/Dialect/GPU/CMakeLists.txt
mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp