569b088eb8
- This test causes build failure when custom HIP_PATH is used - It doesn't add much value as it verifies hipDeviceAttributeFineGrainSupport against HSA APIs - In rare case only it can fail, because internally HIP uses the same HSA APIs for hipDeviceAttributeFineGrainSupport. Change-Id: If3b566d1c784a318e076b640cc2f063b84e25413
50 строки
1.4 KiB
CMake
50 строки
1.4 KiB
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
|
|
hipGetSetDeviceFlags.cc
|
|
hipSetGetDevice.cc
|
|
hipDeviceGetUuid.cc
|
|
hipDeviceGetDefaultMemPool.cc
|
|
hipDeviceCanAccessPeer.cc
|
|
hipDeviceEnableDisablePeerAccess.cc
|
|
hipExtGetLinkTypeAndHopCount.cc
|
|
hipDeviceSetLimit.cc
|
|
hipDeviceSetGetSharedMemConfig.cc
|
|
hipDeviceReset.cc
|
|
hipDeviceSetGetMemPool.cc
|
|
hipInit.cc
|
|
hipDriverGetVersion.cc
|
|
)
|
|
|
|
if(UNIX)
|
|
set(TEST_SRC ${TEST_SRC}
|
|
hipIpcOpenMemHandle.cc
|
|
hipIpcGetMemHandle.cc
|
|
hipIpcCloseMemHandle.cc
|
|
)
|
|
endif()
|
|
|
|
set_source_files_properties(hipGetDeviceCount.cc PROPERTIES COMPILE_FLAGS -std=c++17)
|
|
set_source_files_properties(hipDeviceGetUuid.cc PROPERTIES COMPILE_FLAGS -std=c++17)
|
|
|
|
add_executable(getDeviceCount EXCLUDE_FROM_ALL getDeviceCount_exe.cc)
|
|
|
|
hip_add_exe_to_target(NAME DeviceTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
COMPILE_OPTIONS -std=c++17)
|
|
|
|
add_dependencies(build_tests getDeviceCount)
|