a388eb1e6f
- deprecate -use-staticlib, -use-sharedlib which no longer provide any functional values - use --hip-link instead of specifying the HIP runtime by name when linking - fix linker option bug in HIT test's cmake - update build options for unit tests requiring pthread or rt Change-Id: Ib49978773c80fb40c71dc52b050ce921943ee3e4
30 líneas
720 B
CMake
30 líneas
720 B
CMake
# Common Tests - Test independent of all platforms
|
|
set(TEST_SRC
|
|
Unit_hipEvent_Negative.cc
|
|
Unit_hipEvent.cc
|
|
Unit_hipEventElapsedTime.cc
|
|
Unit_hipEventRecord.cc
|
|
Unit_hipEventIpc.cc
|
|
hipEventDestroy.cc
|
|
hipEventCreate.cc
|
|
hipEventCreateWithFlags.cc
|
|
hipEventSynchronize.cc
|
|
Unit_hipEventMGpuMThreads.cc
|
|
)
|
|
|
|
# The test used wait mechanism and doesnt play well with all arch of nvidia
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
set(AMD_SRC
|
|
Unit_hipEventQuery.cc
|
|
)
|
|
set(TEST_SRC ${TEST_SRC} ${AMD_SRC})
|
|
endif()
|
|
|
|
if (UNIX)
|
|
set(__LINKER_LIBS__ pthread)
|
|
endif()
|
|
|
|
hip_add_exe_to_target(NAME EventTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests)
|