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
38 lines
1.5 KiB
CMake
38 lines
1.5 KiB
CMake
# Copyright © Advanced Micro Devices, Inc., or its affiliates.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
# This test intentionally exercises unclean shutdown with threads still running during
|
|
# static destruction. ASAN flags the resulting heap-use-after-free, which is expected
|
|
# behavior for this scenario. Disable under ASAN since the test validates graceful
|
|
# degradation, not memory safety.
|
|
if(BUILD_ADDRESS_SANITIZER OR THEROCK_SANITIZER STREQUAL "ASAN" OR THEROCK_SANITIZER STREQUAL "HOST_ASAN")
|
|
message(STATUS "Skipping backend_logging_shutdown_tests (incompatible with AddressSanitizer)")
|
|
return()
|
|
endif()
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
# Standalone integration test (no gtest) that verifies shutdown safety when multiple
|
|
# threads with active user log callbacks are still running during static destruction.
|
|
add_executable(hipdnn_backend_logging_shutdown_tests BackendLoggingShutdownTest.cpp)
|
|
|
|
target_compile_options(hipdnn_backend_logging_shutdown_tests PRIVATE ${HIPDNN_WARNING_COMPILE_OPTIONS})
|
|
|
|
target_link_libraries(
|
|
hipdnn_backend_logging_shutdown_tests
|
|
PRIVATE
|
|
Threads::Threads
|
|
hipdnn_backend
|
|
hipdnn_data_sdk
|
|
)
|
|
|
|
target_compile_definitions(
|
|
hipdnn_backend_logging_shutdown_tests
|
|
PRIVATE TEST_GOOD_DEFAULT_PLUGIN_NAME="${TEST_GOOD_DEFAULT_PLUGIN_NAME}"
|
|
)
|
|
|
|
add_dependencies(hipdnn_backend_logging_shutdown_tests test_good_default_plugin)
|
|
|
|
clang_tidy_check(hipdnn_backend_logging_shutdown_tests)
|
|
add_hipdnn_test(hipdnn_backend_logging_shutdown_tests ${CMAKE_CURRENT_BINARY_DIR})
|