Arquivos
rocm-systems/catch/unit/errorHandling/CMakeLists.txt
T
Anavena Venkatesh e9177bd83b SWDEV-491363 - [catch2][dtest] Added test cases for missed graph APIs
Change-Id: Ic740c52992b8d0a325f09b1db0adf599561e1a1d
2025-01-27 10:45:37 -05:00

25 linhas
809 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
)
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)