mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
Add debug output.
This commit is contained in:
@@ -16,7 +16,39 @@ find_package(ROCM)
|
||||
include(ROCMInstallTargets)
|
||||
include(ROCMTest)
|
||||
list(APPEND CMAKE_PREFIX_PATH /opt/rocm $ENV{ROCM_PATH})
|
||||
find_package(hiprtc REQUIRED PATHS /opt/rocm/lib/cmake/hiprtc)
|
||||
|
||||
# Debug output for hiprtc find_package issues
|
||||
message(STATUS "=== hiprtc find_package debug ===")
|
||||
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
|
||||
message(STATUS "ROCM_PATH env: $ENV{ROCM_PATH}")
|
||||
message(STATUS "CMAKE_MODULE_PATH: ${CMAKE_MODULE_PATH}")
|
||||
if(EXISTS "/opt/rocm")
|
||||
message(STATUS "/opt/rocm exists")
|
||||
if(EXISTS "/opt/rocm/lib/cmake")
|
||||
message(STATUS "/opt/rocm/lib/cmake exists")
|
||||
file(GLOB ROCM_CMAKE_DIRS "/opt/rocm/lib/cmake/*")
|
||||
message(STATUS "Contents of /opt/rocm/lib/cmake: ${ROCM_CMAKE_DIRS}")
|
||||
else()
|
||||
message(STATUS "/opt/rocm/lib/cmake does NOT exist")
|
||||
endif()
|
||||
if(EXISTS "/opt/rocm/lib/cmake/hiprtc")
|
||||
message(STATUS "/opt/rocm/lib/cmake/hiprtc exists")
|
||||
file(GLOB HIPRTC_FILES "/opt/rocm/lib/cmake/hiprtc/*")
|
||||
message(STATUS "Contents: ${HIPRTC_FILES}")
|
||||
else()
|
||||
message(STATUS "/opt/rocm/lib/cmake/hiprtc does NOT exist")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "/opt/rocm does NOT exist")
|
||||
endif()
|
||||
if(DEFINED ENV{ROCM_PATH} AND EXISTS "$ENV{ROCM_PATH}/lib/cmake/hiprtc")
|
||||
message(STATUS "ROCM_PATH hiprtc dir exists at: $ENV{ROCM_PATH}/lib/cmake/hiprtc")
|
||||
file(GLOB HIPRTC_FILES_ROCM "$ENV{ROCM_PATH}/lib/cmake/hiprtc/*")
|
||||
message(STATUS "Contents: ${HIPRTC_FILES_ROCM}")
|
||||
endif()
|
||||
message(STATUS "=== end hiprtc debug ===")
|
||||
|
||||
find_package(hiprtc REQUIRED)
|
||||
|
||||
rocm_setup_version(VERSION 1.0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user