From 265d0a2d2bece980c4c8e33445cd2e023c94d88e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Mestre?= Date: Mon, 26 Jan 2026 11:37:25 +0000 Subject: [PATCH] Disable Unit_hipStreamPerThread_MultiThread (#2409) This test is launching threads that call HIP APIs and then immediately detaching those threads and returning from main(). This causes multiple issues because when returning from main(), global variables are destroyed while threads might still be running which leads to random segfaults. --- projects/hip-tests/catch/hipTestMain/config/config_amd_linux | 2 ++ .../hip-tests/catch/hipTestMain/config/config_amd_windows | 2 ++ .../hip-tests/catch/hipTestMain/config/config_amd_wsl.json | 4 +++- .../catch/hipTestMain/config/config_nvidia_linux.json | 4 +++- .../catch/hipTestMain/config/config_nvidia_windows.json | 4 +++- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux index 6a168deafe..b4da228100 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_linux +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_linux @@ -139,6 +139,8 @@ "Unit_Device_tgammaf_Accuracy_Limited_Positive", "=== TODO === fail on 100% test data", "Unit_Device___hfma2_Accuracy_Positive", + "=== Test does not reflect a valid use case - SWDEV-569454", + "Unit_hipStreamPerThread_MultiThread", #endif #if defined gfx90a || defined gfx942 || defined gfx950 "=== SWDEV-443630 : Below test failed in stress test on 19/01/24 ===", diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows index 24e5cefcf5..b13350fd75 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_windows +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_windows @@ -749,6 +749,8 @@ "========mlsejenkins_Window_Failures_on_gfx1201===========================================", "Unit_hipMemPoolSetAttribute_EventDependencies", "Unit_hipStreamSynchronize_NullStreamSynchronization", + "=== Test does not reflect a valid use case - SWDEV-569454", + "Unit_hipStreamPerThread_MultiThread", #endif "=== Following tests disabled as it should be a local perf test", "Performance_hipExtLaunchKernelGGL_QueryGPUFrequency", diff --git a/projects/hip-tests/catch/hipTestMain/config/config_amd_wsl.json b/projects/hip-tests/catch/hipTestMain/config/config_amd_wsl.json index c25b608fbb..b91bad5e95 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_amd_wsl.json +++ b/projects/hip-tests/catch/hipTestMain/config/config_amd_wsl.json @@ -629,6 +629,8 @@ "Unit_hipStreamCreate_WithPriorityPerformance_Nonblocking_high", "Unit_hipStreamCreate_WithPriorityPerformance_Default_low", "=== Following tests disabled as it should be a local perf test", - "Performance_hipExtLaunchKernelGGL_QueryGPUFrequency" + "Performance_hipExtLaunchKernelGGL_QueryGPUFrequency", + "=== Test does not reflect a valid use case - SWDEV-569454", + "Unit_hipStreamPerThread_MultiThread" ] } diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json index 762770a79c..0b4ccb502a 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json +++ b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_linux.json @@ -65,6 +65,8 @@ "Unit_Device___ll2half_rd_Accuracy_Positive", "Unit_Device___ll2half_ru_Accuracy_Positive", "Unit_Device___ull2half_rz_Accuracy_Positive", - "Unit_Device___ull2half_rd_Accuracy_Positive" + "Unit_Device___ull2half_rd_Accuracy_Positive", + "=== Test does not reflect a valid use case - SWDEV-569454", + "Unit_hipStreamPerThread_MultiThread" ] } diff --git a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json index a291f0eb63..758b5c417e 100644 --- a/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json +++ b/projects/hip-tests/catch/hipTestMain/config/config_nvidia_windows.json @@ -65,6 +65,8 @@ "Unit_hipDeviceSynchronize_Functional", "Unit_hipDeviceReset_Positive_Basic", "Unit_hipDeviceReset_Positive_Threaded", - "Unit_hipModuleGetTexRef_Positive_Basic" + "Unit_hipModuleGetTexRef_Positive_Basic", + "=== Test does not reflect a valid use case - SWDEV-569454", + "Unit_hipStreamPerThread_MultiThread" ] }