Correct HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK query

We should be returning the max workgroup size calculated by the compiler.

Change-Id: If86590efbb9b291f470bdbe87e5df992e661c539


[ROCm/hip commit: 1b1c032e9f]
Tá an tiomantas seo le fáil i:
Vlad Sytchenko údaraithe agus Vladislav Sytchenko tiomanta 2020-05-08 14:36:47 -04:00
1 tuismitheoir 2e98030e46
tiomantas 802b60054d
2 comhad athraithe
+2 -3

Níor tháinig aon chomhaid le do chuardach

+1 -2
Féach ar an gComhad
@@ -317,8 +317,7 @@ hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunc
*value = static_cast<int>(wrkGrpInfo->localMemSize_);
break;
case HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK:
*value = static_cast<int>(wrkGrpInfo->wavefrontPerSIMD_
* wrkGrpInfo->wavefrontSize_);
*value = static_cast<int>(wrkGrpInfo->size_);
break;
case HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES:
*value = 0;