961245e9f4
* SWDEV-359379 - catch2: Standalone single exe per file -workaround for rsp file issue. -Creates single exe per file -tests detection is still during execution time and NOT compile time Change-Id: Iddfb83d57b2d767212f3d9307a276b7d572da6cd * SWDEV-359379 - Update CMakeList * Update Catch.cmake * Temporarily disable failing tests
53 lines
1.6 KiB
CMake
53 lines
1.6 KiB
CMake
set(COMMON_SHARED_SRC streamCommon.cc)
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
set(TEST_SRC
|
|
hipStreamCreate.cc
|
|
hipStreamGetFlags.cc
|
|
hipStreamGetPriority.cc
|
|
hipMultiStream.cc
|
|
hipStreamAddCallback.cc
|
|
hipStreamCreateWithFlags.cc
|
|
hipStreamCreateWithPriority.cc
|
|
hipStreamDestroy.cc
|
|
hipStreamGetCUMask.cc
|
|
hipAPIStreamDisable.cc
|
|
hipStreamValue.cc
|
|
hipStreamWithCUMask.cc
|
|
hipStreamACb_MultiThread.cc
|
|
hipStreamSynchronize.cc
|
|
hipStreamQuery.cc
|
|
hipStreamWaitEvent.cc
|
|
hipDeviceGetStreamPriorityRange.cc
|
|
hipStreamACb_StrmSyncTiming.cc
|
|
)
|
|
else()
|
|
set(TEST_SRC
|
|
hipStreamCreate.cc
|
|
hipStreamGetFlags.cc
|
|
hipStreamGetPriority.cc
|
|
hipMultiStream.cc
|
|
hipStreamACb_MultiThread.cc
|
|
hipStreamAddCallback.cc
|
|
hipStreamCreateWithFlags.cc
|
|
hipStreamCreateWithPriority.cc
|
|
hipStreamDestroy.cc
|
|
hipAPIStreamDisable.cc
|
|
# hipStreamAttachMemAsync_old.cc # Disabling it on nvidia due to issue in function definition of hipStreamAttachMemAsync
|
|
# Fixing would break ABI, to be re-enabled when the fix is made.
|
|
hipStreamValue.cc
|
|
hipStreamSynchronize.cc
|
|
hipStreamQuery.cc
|
|
hipDeviceGetStreamPriorityRange.cc
|
|
hipStreamACb_StrmSyncTiming.cc
|
|
)
|
|
|
|
# set_source_files_properties(hipStreamAttachMemAsync_old.cc PROPERTIES COMPILE_FLAGS -std=c++17)
|
|
endif()
|
|
|
|
hip_add_exe_to_target(NAME StreamTest
|
|
TEST_SRC ${TEST_SRC}
|
|
TEST_TARGET_NAME build_tests
|
|
COMPILE_OPTIONS -std=c++17
|
|
COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|