SWDEV-369569 - updated hipModuleLaunch test (#3241)
Change-Id: I62354f9d65b1e18d650759b32b1115810fafba57
[ROCm/hip commit: f86ae60324]
This commit is contained in:
1 والد
3ba9e3859a
کامیت
4fcf5a94f4
1 file changed
+1
-6
@@ -246,15 +246,10 @@ bool Module_GridBlock_Corner_Tests() {
|
|||||||
unsigned int maxblockX = deviceProp.maxThreadsDim[0];
|
unsigned int maxblockX = deviceProp.maxThreadsDim[0];
|
||||||
unsigned int maxblockY = deviceProp.maxThreadsDim[1];
|
unsigned int maxblockY = deviceProp.maxThreadsDim[1];
|
||||||
unsigned int maxblockZ = deviceProp.maxThreadsDim[2];
|
unsigned int maxblockZ = deviceProp.maxThreadsDim[2];
|
||||||
#ifdef __HIP_PLATFORM_NVCC__
|
|
||||||
unsigned int maxgridX = deviceProp.maxGridSize[0];
|
unsigned int maxgridX = deviceProp.maxGridSize[0];
|
||||||
unsigned int maxgridY = deviceProp.maxGridSize[1];
|
unsigned int maxgridY = deviceProp.maxGridSize[1];
|
||||||
unsigned int maxgridZ = deviceProp.maxGridSize[2];
|
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},
|
struct gridblockDim test[6] = {{1, 1, 1, maxblockX, 1, 1},
|
||||||
{1, 1, 1, 1, maxblockY, 1},
|
{1, 1, 1, 1, maxblockY, 1},
|
||||||
{1, 1, 1, 1, 1, maxblockZ},
|
{1, 1, 1, 1, 1, maxblockZ},
|
||||||
|
|||||||
Reference in new issue
Block a user