SWDEV-388493 - Use HSA APIs instead of rocminfo
- Recreation of github PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/217 - For Unit_hipGetDeviceAttribute_CheckFineGrainSupport test, get segment information using HSA APIs instead of rocminfo Change-Id: I20f4c8a6669684a2326a3ce61735c4fa10433f9d
This commit is contained in:
@@ -45,5 +45,13 @@ hip_add_exe_to_target(NAME DeviceTest
|
||||
TEST_SRC ${TEST_SRC}
|
||||
TEST_TARGET_NAME build_tests
|
||||
COMPILE_OPTIONS -std=c++17)
|
||||
# Add hsa-runtime dependencies for Unit_hipGetDeviceAttribute_CheckFineGrainSupport
|
||||
if(UNIX)
|
||||
if(HIP_PLATFORM STREQUAL "amd")
|
||||
target_include_directories(DeviceTest PRIVATE ${ROCM_PATH}/include)
|
||||
target_link_libraries(DeviceTest hsa-runtime64)
|
||||
target_link_directories(DeviceTest PRIVATE ${ROCM_PATH}/lib)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_dependencies(build_tests getDeviceCount)
|
||||
|
||||
Reference in New Issue
Block a user