Comhaid
rocm-systems/projects/hip/tests/catch/unit/stream/CMakeLists.txt
T
nives-vukovic d45eb3bb01 EXSWHTEC-18 - Implement positive test for hipDeviceGetStreamPriorityRange (#2911)
- Add hipDeviceGetStreamPriorityRange.cc file with a test for simple device stream priority range check
- Add newly created file into CMakeLists.txt

[ROCm/hip commit: 66471b01c9]
2022-09-26 11:02:49 +05:30

50 línte
1.4 KiB
CMake

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
streamCommon.cc
hipStreamValue.cc
hipStreamWithCUMask.cc
hipStreamACb_MultiThread.cc
hipStreamSynchronize.cc
hipStreamQuery.cc
hipStreamWaitEvent.cc
hipDeviceGetStreamPriorityRange.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.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.
streamCommon.cc
hipStreamValue.cc
hipStreamSynchronize.cc
hipStreamQuery.cc
hipDeviceGetStreamPriorityRange.cc
)
# set_source_files_properties(hipStreamAttachMemAsync.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)