diff --git a/projects/hip/tests/src/runtimeApi/occupancy/hipOccupancyMaxPotentialBlockSize.cpp b/projects/hip/tests/src/runtimeApi/occupancy/hipOccupancyMaxPotentialBlockSize.cpp index e06ea9c600..49f0ed1bf7 100644 --- a/projects/hip/tests/src/runtimeApi/occupancy/hipOccupancyMaxPotentialBlockSize.cpp +++ b/projects/hip/tests/src/runtimeApi/occupancy/hipOccupancyMaxPotentialBlockSize.cpp @@ -82,7 +82,7 @@ bool argValidation() { #ifndef __HIP_PLATFORM_NVIDIA__ // nvcc doesnt support kernelfunc(NULL) for api ret = hipOccupancyMaxPotentialBlockSize(&gridSize, &blockSize, NULL, 0, 0); - if (ret != hipErrorInvalidValue) { + if (ret != hipErrorInvalidValue && ret != hipErrorInvalidDeviceFunction) { printf("ArgValidation : Inappropritate error value returned for" " kernelfunc(NULL). gridSize %d, blkSize %d, Error: '%s'(%d)\n", gridSize, blockSize, hipGetErrorString(ret), ret);