CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
82 lines
2.8 KiB
CMake
82 lines
2.8 KiB
CMake
# Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
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
|
|
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
|
|
hipStreamAttachMemAsync.cc
|
|
# TODO renable it TheRock is not finding it
|
|
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
|
|
hipStreamValueCapture.cc
|
|
hipStreamPriorityAqlLog.cc
|
|
# disabled on NVIDIA due to lack of hipStreamGetCaptureInfo_v2 in cuda 13.0+
|
|
hipStreamLegacy.cc
|
|
|
|
)
|
|
if(WIN32)
|
|
set(TEST_SRC ${TEST_SRC} hipStreamKilledWorkerThread.cc)
|
|
endif()
|
|
else()
|
|
set(TEST_SRC
|
|
${TEST_SRC}
|
|
hipStreamACb_MultiThread.cc)
|
|
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
|
|
COMMON_SHARED_SRC ${COMMON_SHARED_SRC})
|
|
|
|
add_executable(hipStreamLegacy_exe EXCLUDE_FROM_ALL hipStreamLegacy_exe.cc)
|
|
set_source_files_properties(hipStreamLegacy_exe.cc PROPERTIES LANGUAGE ${GPGPU_LANGUAGE})
|
|
|
|
add_dependencies(StreamTest hipStreamLegacy_exe)
|
|
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipStreamLegacy_exe)
|
|
|
|
if(WIN32 AND HIP_PLATFORM MATCHES "amd")
|
|
add_executable(hipStreamKilledWorkerThread_exe EXCLUDE_FROM_ALL
|
|
hipStreamKilledWorkerThread_exe.cc)
|
|
set_source_files_properties(hipStreamKilledWorkerThread_exe.cc PROPERTIES
|
|
LANGUAGE ${GPGPU_LANGUAGE})
|
|
target_link_libraries(hipStreamKilledWorkerThread_exe ${GPGPU_LINKER_LIBRARIES})
|
|
add_dependencies(StreamTest hipStreamKilledWorkerThread_exe)
|
|
set_property(GLOBAL APPEND PROPERTY G_INSTALL_EXE_TARGETS hipStreamKilledWorkerThread_exe)
|
|
endif()
|