SWDEV-418116 - FindHIP.cmake is moved to /opt/rocm/lib/cmake/hip/ from /opt/rocm/hip/cmake/
Refer hipify-perl from /opt/rocm/bin/. Change-Id: I95af838136b124d776323442253e8c74278d69e5
This commit is contained in:
committed by
Rakesh Roy
parent
03b6ca735f
commit
560ef9b945
@@ -30,7 +30,7 @@ if(NOT DEFINED HIP_PATH)
|
||||
set(HIP_PATH $ENV{HIP_PATH} CACHE PATH "Path to which HIP has been installed")
|
||||
endif()
|
||||
endif()
|
||||
set(CMAKE_MODULE_PATH "${HIP_PATH}/hip/cmake" ${CMAKE_MODULE_PATH})
|
||||
set(CMAKE_MODULE_PATH "${HIP_PATH}/lib/cmake/hip/" ${CMAKE_MODULE_PATH})
|
||||
set(CMAKE_HIP_ARCHITECTURES OFF)
|
||||
project(12_cmake)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Since FindHIP cmake module is not yet a part of the default cmake distribution,
|
||||
|
||||
The simplest approach is to use
|
||||
```
|
||||
set(CMAKE_MODULE_PATH "/opt/rocm/hip/cmake" ${CMAKE_MODULE_PATH})
|
||||
set(CMAKE_MODULE_PATH "/opt/rocm/lib/cmake/hip/" ${CMAKE_MODULE_PATH})
|
||||
find_package(HIP)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user