diff options
author | Brad King <brad.king@kitware.com> | 2021-09-14 17:14:22 +0000 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-16 15:33:53 -0400 |
commit | cb93f7262469d0f7e1b7da01ad3586d001234af2 (patch) | |
tree | ee450b9b1157f07ff1c3b250781749cb848fc9be /Modules/CMakeHIPCompiler.cmake.in | |
parent | a71f0fc9c7762a06d0bfdd64d0d490919e12357a (diff) | |
download | cmake-cb93f7262469d0f7e1b7da01ad3586d001234af2.tar.gz |
HIP: Simplify detection of HIP runtime CMake package
It only makes sense to use the CMake package from the same ROCm
installation that the compiler uses. Ask the HIP compiler to report the
location of the ROCm installation. Verify up front that it contains the
expected CMake package file.
Diffstat (limited to 'Modules/CMakeHIPCompiler.cmake.in')
-rw-r--r-- | Modules/CMakeHIPCompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeHIPCompiler.cmake.in b/Modules/CMakeHIPCompiler.cmake.in index 9a30a45b3a..17633a86c4 100644 --- a/Modules/CMakeHIPCompiler.cmake.in +++ b/Modules/CMakeHIPCompiler.cmake.in @@ -16,6 +16,7 @@ set(CMAKE_HIP_COMPILER_FRONTEND_VARIANT "@CMAKE_HIP_COMPILER_FRONTEND_VARIANT@") set(CMAKE_HIP_SIMULATE_VERSION "@CMAKE_HIP_SIMULATE_VERSION@") @SET_MSVC_HIP_ARCHITECTURE_ID@ @_SET_CMAKE_HIP_COMPILER_SYSROOT@ +set(CMAKE_HIP_COMPILER_ROCM_ROOT "@CMAKE_HIP_COMPILER_ROCM_ROOT@") set(CMAKE_HIP_COMPILER_ENV_VAR "HIPCXX") |