2023-01-19 14:09:14 -08:00
|
|
|
set(COMMON_SHARED_SRC streamCommon.cc)
|
|
|
|
|
|
2021-06-25 08:28:59 +00:00
|
|
|
set(TEST_SRC
|
|
|
|
|
hipStreamCreate.cc
|
|
|
|
|
hipStreamGetFlags.cc
|
|
|
|
|
hipStreamGetPriority.cc
|
|
|
|
|
hipMultiStream.cc
|
2021-09-14 13:38:07 +05:30
|
|
|
hipStreamAddCallback.cc
|
|
|
|
|
hipStreamCreateWithFlags.cc
|
|
|
|
|
hipStreamCreateWithPriority.cc
|
2022-08-05 06:29:19 +01:00
|
|
|
hipStreamDestroy.cc
|
2021-09-17 11:39:25 +05:30
|
|
|
hipAPIStreamDisable.cc
|
2024-05-22 11:25:54 -04:00
|
|
|
hipStreamLegacy.cc
|
2022-06-03 04:01:30 +01:00
|
|
|
hipStreamValue.cc
|
2022-08-08 04:59:20 +01:00
|
|
|
hipStreamSynchronize.cc
|
|
|
|
|
hipStreamQuery.cc
|
2022-09-26 07:32:49 +02:00
|
|
|
hipDeviceGetStreamPriorityRange.cc
|
2022-11-28 20:16:16 +05:30
|
|
|
hipStreamACb_StrmSyncTiming.cc
|
2023-03-02 07:01:07 +05:30
|
|
|
hipLaunchHostFunc.cc
|
2023-03-21 21:27:30 +05:30
|
|
|
hipStreamGetDevice.cc
|
2023-02-28 05:25:24 +05:30
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(HIP_PLATFORM MATCHES "amd")
|
|
|
|
|
set(TEST_SRC ${TEST_SRC} hipStreamGetCUMask.cc hipStreamWithCUMask.cc
|
|
|
|
|
hipStreamACb_MultiThread.cc hipStreamWaitEvent.cc)
|
2021-09-14 13:38:07 +05:30
|
|
|
else()
|
2023-02-28 05:25:24 +05:30
|
|
|
set(TEST_SRC
|
|
|
|
|
${TEST_SRC}
|
|
|
|
|
# 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.
|
|
|
|
|
hipStreamACb_MultiThread.cc)
|
2022-07-11 10:07:22 +01:00
|
|
|
|
2023-02-28 05:25:24 +05:30
|
|
|
# set_source_files_properties(hipStreamAttachMemAsync_old.cc PROPERTIES
|
|
|
|
|
# COMPILE_FLAGS -std=c++17)
|
2021-09-14 13:38:07 +05:30
|
|
|
endif()
|
2021-06-25 08:28:59 +00:00
|
|
|
|
2023-02-28 05:25:24 +05:30
|
|
|
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})
|