Files
rocm-systems/projects/hip-tests/catch/unit/stream/CMakeLists.txt
T
Satyanvesh Dittakavi 46e683d41a SWDEV-545950 - Add hipStreamCopyAttributes API Implementation (#914)
* SWDEV-545950 - Add hipStreamCopyAttributes API Implementation

* Add unit test for hipStreamCopyAttributes API

* Add ChangeLog and nvidia mapping for the API

* Update rocprofiler-sdk with new HIP API details

* [rocprofiler-sdk] handle hipStreamCopyAttributes in stream tracing service

- this new HIP function has multiple stream arguments and needs to be skipped because it does not have an explicit create/destroy/set functionality

* Update HIP_RUNTIME_API_TABLE_STEP_VERSION in clr and rocprofiler-sdk

* Resolve merge conflicts

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
2025-10-12 19:57:05 +05:30

62 lines
2.1 KiB
CMake

set(COMMON_SHARED_SRC streamCommon.cc)
set(TEST_SRC
hipStreamCreate.cc
hipStreamGetFlags.cc
hipStreamGetPriority.cc
hipMultiStream.cc
hipStreamAddCallback.cc
hipStreamCreateWithFlags.cc
hipStreamCreateWithPriority.cc
hipStreamDestroy.cc
hipAPIStreamDisable.cc
hipStreamLegacy.cc
hipStreamValue.cc
hipStreamSynchronize.cc
hipStreamQuery.cc
hipDeviceGetStreamPriorityRange.cc
hipStreamACb_StrmSyncTiming.cc
hipLaunchHostFunc.cc
hipStreamGetDevice.cc
hipStreamLegacy_Ext.cc
hipStreamLegacy_compiler_options.cc
hipStreamGetId.cc
hipStreamSetGetAttributes.cc
hipStreamCopyAttributes.cc)
if(HIP_PLATFORM MATCHES "amd")
set(TEST_SRC ${TEST_SRC} hipStreamGetCUMask.cc hipStreamWithCUMask.cc
hipStreamACb_MultiThread.cc hipStreamWaitEvent.cc
hipStreamGetFlags_spt.cc
hipStreamGetPriority_spt.cc
hipStreamQuery_spt.cc
hipStreamSynchronize_spt.cc
hipStreamBatchMemOp.cc)
else()
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)
# set_source_files_properties(hipStreamAttachMemAsync_old.cc PROPERTIES
# COMPILE_FLAGS -std=c++17)
endif()
if(HIP_PLATFORM MATCHES "amd")
set_source_files_properties(hipStreamLegacy_compiler_options.cc PROPERTIES COMPILE_OPTIONS "-fgpu-default-stream=per-thread")
endif()
if(HIP_PLATFORM MATCHES "nvidia")
set_source_files_properties(hipStreamLegacy_compiler_options.cc PROPERTIES COMPILE_OPTIONS "--default-stream=per-thread")
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})
add_executable(hipStreamLegacy_exe EXCLUDE_FROM_ALL hipStreamLegacy_exe.cc)
add_dependencies(StreamTest hipStreamLegacy_exe)
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipStreamLegacy_exe)