SWDEV-311412: Fixing rocprof application runs fail. Added a check in cmake_modules/env.cmake to check if aqlprofile library is found.
Change-Id: I9ff702bc0b4074101cca7beb78e711ce417308cd
This commit is contained in:
committed by
Sriraksha Nagaraj
parent
1f925b3f16
commit
071379be99
@@ -134,3 +134,8 @@ message ( "---------GPU_TARGETS: ${GPU_TARGETS}" )
|
||||
if ( "${ROCM_ROOT_DIR}" STREQUAL "" )
|
||||
message ( FATAL_ERROR "ROCM_ROOT_DIR is not found." )
|
||||
endif ()
|
||||
|
||||
find_library ( FIND_AQL_PROFILE_LIB "libhsa-amd-aqlprofile64.so" HINTS ${CMAKE_INSTALL_PREFIX} PATHS ${ROCM_ROOT_DIR})
|
||||
if ( NOT FIND_AQL_PROFILE_LIB )
|
||||
message ( FATAL_ERROR "AQL_PROFILE not installed. Please install AQL_PROFILE" )
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user