Correct HIP_FUNC_ATTRIBUTE_NUM_REGS query

Change-Id: I526cc7871c690260df0fa8c1b3b4b15fbc5af219
这个提交包含在:
Vlad Sytchenko 于 2020-05-09 12:42:30 -04:00 提交
1 父节点 6c05f34e6d
当前提交 a88e52ba80
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -326,7 +326,7 @@ hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunc
*value = static_cast<int>(wrkGrpInfo->privateMemSize_);
break;
case HIP_FUNC_ATTRIBUTE_NUM_REGS:
*value = static_cast<int>(wrkGrpInfo->availableGPRs_);
*value = static_cast<int>(wrkGrpInfo->usedVGPRs_);
break;
case HIP_FUNC_ATTRIBUTE_PTX_VERSION:
*value = 30; // Defaults to 3.0 as HCC