Dosyalar
rocm-systems/projects/hip-tests/catch/unit/errorHandling/CMakeLists.txt
T
SrinivasaRao 4c513305a1 SWDEV-493299-Test Env variable to avoid silent errors with hipGetLastError feature
Change-Id: Iec5720021f626f2021595db5bb2d2c99c0deeefd


[ROCm/hip-tests commit: 08b2adef47]
2025-01-22 09:07:40 -05:00

19 satır
685 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)
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)