SWDEV-425678 - Fix build failure in HIP samples

- Due to file reorg path changes cmake fails at find_package(hip) unless CMAKE_PREFIX_PATH is set explicitly
- Update CMakeLists.txt to set CMAKE_PREFIX_PATH
- Update Readme

Change-Id: Ibdb4419efcdd6583b059a728e48dfdb8f927a48b


[ROCm/hip-tests commit: 4dfa7ca7e6]
这个提交包含在:
Rakesh Roy 编写, Rahul Manocha 于 2023-11-27 12:56:29 -05:00 提交
1 父节点 e84ad1b0d7
当前提交 16691f6e85
30 个文件已更改
+220 -6

没有与搜索条件相匹配的文件

@@ -23,6 +23,15 @@ project(module_api)
cmake_minimum_required(VERSION 3.10)
include_directories(../../common)
if(UNIX)
if(NOT DEFINED ROCM_PATH)
set(ROCM_PATH "/opt/rocm" CACHE STRING "Default ROCM installation directory.")
endif()
# Search for rocm in common locations
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH})
endif()
# Find hip
find_package(hip)