SWDEV-487997 - Kernel launch can return invalid config/value in case of thread/block is 0 & -ve.

Change-Id: I91fbe2361894f16c65236c9736bd677a6d5f1f61


[ROCm/hip-tests commit: 064d0398d8]
This commit is contained in:
Jaydeep Patel
2024-10-04 21:59:11 +00:00
zatwierdzone przez Jaydeepkumar Patel
rodzic 72534cd356
commit 6fd086821b
@@ -53,7 +53,10 @@ template <bool out_of_bounds> 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);