Files
rocm-systems/catch/unit/device/CMakeLists.txt
T
sumanthtg c9ae0281ff SWDEV-238517 - [dtest] Catch2 unit tests for device files.
Changes contain Device files under "hip/tests/src/runtimeApi/device" migrated to Catch2 and some additional device tests.

Change-Id: Ie88adc3c32c2079456b14e029cfc6c319b48d8f6
2021-07-19 13:38:30 -04:00

26 строки
680 B
CMake

# Common Tests - Test independent of all platforms
set(TEST_SRC
hipChooseDevice.cc
hipDeviceComputeCapability.cc
hipDeviceGetByPCIBusId.cc
hipDeviceGetLimit.cc
hipDeviceGetName.cc
hipDeviceGetPCIBusId.cc
hipDeviceSetGetCacheConfig.cc
hipDeviceSynchronize.cc
hipDeviceTotalMem.cc
hipGetDeviceAttribute.cc
hipGetDeviceCount.cc
hipGetDeviceProperties.cc
hipRuntimeGetVersion.cc
hipSetDeviceFlags.cc
hipSetGetDevice.cc
)
# Create shared lib of all tests
add_library(DeviceTest SHARED EXCLUDE_FROM_ALL ${TEST_SRC})
# Add dependency on build_tests to build it on this custom target
add_dependencies(build_tests DeviceTest)