Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Fix checking if hsa/hsa.h is found, use ROCM_PATH #11

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hip-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ if(NOT WIN32)
find_path(HSA_HEADER hsa/hsa.h
PATHS
"${_IMPORT_PREFIX}/../include"
/opt/rocm/include
"${ROCM_PATH}/include"
)

if (HSA_HEADER-NOTFOUND)
if (NOT HSA_HEADER)
message (FATAL_ERROR "HSA header not found! ROCM_PATH environment not set")
endif()
endif()
Expand Down