From 560ef9b945cb8ec31e9e0465dd30d8cdc3877afe Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Mon, 21 Aug 2023 11:09:47 +0000 Subject: [PATCH] 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 --- samples/0_Intro/square/CMakeLists.txt | 2 +- samples/2_Cookbook/12_cmake_hip_add_executable/CMakeLists.txt | 2 +- samples/2_Cookbook/12_cmake_hip_add_executable/Readme.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/0_Intro/square/CMakeLists.txt b/samples/0_Intro/square/CMakeLists.txt index 7ff5848efd..3ce76b64ba 100644 --- a/samples/0_Intro/square/CMakeLists.txt +++ b/samples/0_Intro/square/CMakeLists.txt @@ -25,7 +25,7 @@ project(square) cmake_minimum_required(VERSION 3.10) # create square.cpp -execute_process(COMMAND sh -c "${CMAKE_PREFIX_PATH}/hip/bin/hipify-perl ../square.cu > ../square.cpp") +execute_process(COMMAND sh -c "${CMAKE_PREFIX_PATH}/bin/hipify-perl ../square.cu > ../square.cpp") # Find hip find_package(hip) diff --git a/samples/2_Cookbook/12_cmake_hip_add_executable/CMakeLists.txt b/samples/2_Cookbook/12_cmake_hip_add_executable/CMakeLists.txt index 9bc99e36ae..74c51f5c25 100644 --- a/samples/2_Cookbook/12_cmake_hip_add_executable/CMakeLists.txt +++ b/samples/2_Cookbook/12_cmake_hip_add_executable/CMakeLists.txt @@ -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) diff --git a/samples/2_Cookbook/12_cmake_hip_add_executable/Readme.md b/samples/2_Cookbook/12_cmake_hip_add_executable/Readme.md index b2a4547670..c57bdb3b35 100644 --- a/samples/2_Cookbook/12_cmake_hip_add_executable/Readme.md +++ b/samples/2_Cookbook/12_cmake_hip_add_executable/Readme.md @@ -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) ```