From 6fd086821b3f710e3a071f4bbb75d85a09e94bb1 Mon Sep 17 00:00:00 2001 From: Jaydeep Patel Date: Fri, 4 Oct 2024 21:59:11 +0000 Subject: [PATCH] SWDEV-487997 - Kernel launch can return invalid config/value in case of thread/block is 0 & -ve. Change-Id: I91fbe2361894f16c65236c9736bd677a6d5f1f61 [ROCm/hip-tests commit: 064d0398d834c16f1bab2277905e7ede5079b30a] --- projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc index 1a9fc70710..0a6c858088 100644 --- a/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc +++ b/projects/hip-tests/catch/unit/launchBounds/launch_bounds.cc @@ -53,7 +53,10 @@ template void LaunchBoundsWrapper(const int threads_per_blo if constexpr (out_of_bounds) { if (threads_per_block < 0) { - HIP_CHECK_ERROR(hipGetLastError(), hipErrorInvalidConfiguration); + hipError_t err = hipGetLastError(); + if (err != hipErrorInvalidConfiguration && err != hipErrorInvalidValue) { + REQUIRE(false); + } } else { #if HT_AMD HIP_CHECK_ERROR(hipGetLastError(), hipErrorLaunchFailure);