From 4fcf5a94f415dabdfac7d3193aaa5b2df5060ae9 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Wed, 28 Jun 2023 21:53:46 +0530 Subject: [PATCH] SWDEV-369569 - updated hipModuleLaunch test (#3241) Change-Id: I62354f9d65b1e18d650759b32b1115810fafba57 [ROCm/hip commit: f86ae60324f83a6fa6af0e5cba71da0a5d31659b] --- .../tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/projects/hip/tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp b/projects/hip/tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp index d317405799..324ebd4fdf 100644 --- a/projects/hip/tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp +++ b/projects/hip/tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp @@ -246,15 +246,10 @@ bool Module_GridBlock_Corner_Tests() { unsigned int maxblockX = deviceProp.maxThreadsDim[0]; unsigned int maxblockY = deviceProp.maxThreadsDim[1]; unsigned int maxblockZ = deviceProp.maxThreadsDim[2]; -#ifdef __HIP_PLATFORM_NVCC__ unsigned int maxgridX = deviceProp.maxGridSize[0]; unsigned int maxgridY = deviceProp.maxGridSize[1]; unsigned int maxgridZ = deviceProp.maxGridSize[2]; -#else - unsigned int maxgridX = INT32_MAX; - unsigned int maxgridY = UINT16_MAX; - unsigned int maxgridZ = UINT16_MAX; -#endif + struct gridblockDim test[6] = {{1, 1, 1, maxblockX, 1, 1}, {1, 1, 1, 1, maxblockY, 1}, {1, 1, 1, 1, 1, maxblockZ},