Файли
rocm-systems/catch/unit/errorHandling/CMakeLists.txt
T
Swargam, Rambabu 9741b347e5 SWDEV-532647 - [catch2][dtest] Test cases for hipGetLastError on Kernel Failure (#247)
* SWDEV-532647 - [catch2][dtest] Test cases for hipGetLastError on Kernel Failure

* SWDEV-532647 - Restricted to Linux, removed comment for mismatch error code

* SWDEV-532647 - Disabled tests for AMD due to hang issue

* SWDEV-532647 - Fixed clang format issues
2025-07-07 17:49:00 +05:30

32 рядки
894 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
error_handling_common.cc
hipGetErrorName.cc
hipGetErrorString.cc
hipDrvGetErrorName.cc
hipDrvGetErrorString.cc
hipGetLastError.cc
hipPeekAtLastError.cc
)
if(UNIX)
set(TEST_SRC
${TEST_SRC}
hipGetLastErrorOnAbort.cc)
endif()
add_executable(hipGetLastErrorEnv_Exe EXCLUDE_FROM_ALL hipGetLastErrorEnv_Exe.cc)
add_executable(hipPeekAtLastErrorEnv_Exe EXCLUDE_FROM_ALL hipPeekAtLastErrorEnv_Exe.cc)
if(HIP_PLATFORM MATCHES "amd")
set(AMD_SRC
hipExtGetLastError.cc
)
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
endif()
hip_add_exe_to_target(NAME ErrorHandlingTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests
COMPILE_OPTIONS -std=c++17)
add_dependencies(build_tests hipGetLastErrorEnv_Exe hipPeekAtLastErrorEnv_Exe)