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]
Этот коммит содержится в:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2024-12-04 10:06:36 -05:00
1 родитель 72534cd356
Коммит 6fd086821b
1 file changed
+4 -1
+4 -1
Просмотреть файл
@@ -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);