SWDEV-511890 - Use max grid dim from device prop like block dim in checking for corner cases.

Change-Id: I557c70186b4a695b7c151952bf8cfd8dae54eb20
Этот коммит содержится в:
Jaydeep Patel
2025-01-31 12:05:37 +00:00
коммит произвёл Jaydeepkumar Patel
родитель 94eea4db59
Коммит c0fc5426e5
+6 -3
Просмотреть файл
@@ -745,12 +745,15 @@ bool ModuleLaunchKernel::ExtModule_Corner_tests() {
unsigned int maxblockX = deviceProp.maxThreadsDim[0];
unsigned int maxblockY = deviceProp.maxThreadsDim[1];
unsigned int maxblockZ = deviceProp.maxThreadsDim[2];
unsigned int maxgridX = deviceProp.maxGridSize[0];
unsigned int maxgridY = deviceProp.maxGridSize[1];
unsigned int maxgridZ = deviceProp.maxGridSize[2];
struct gridblockDim test[6] = {{1, 1, 1, maxblockX, 1, 1},
{1, 1, 1, 1, maxblockY, 1},
{1, 1, 1, 1, 1, maxblockZ},
{UINT32_MAX, 1, 1, 1, 1, 1},
{1, UINT32_MAX, 1, 1, 1, 1},
{1, 1, UINT32_MAX, 1, 1, 1}};
{maxgridX, 1, 1, 1, 1, 1},
{1, maxgridY, 1, 1, 1, 1},
{1, 1, maxgridZ, 1, 1, 1}};
for (int i = 0; i < 6; i++) {
err = hipExtModuleLaunchKernel(DummyKernel,