SWDEV-301947 - Report regular CU count for OpenCL

Change-Id: I3ea058bba98f3c6554cbde37173bbd772f489cf5
This commit is contained in:
Saleel Kudchadker committed 2022-03-29 16:19:14 -04:00
1 parent c1b95b09bf
commit 61d0b999be
1 file changed
+3 -1
+3 -1
View File
@@ -1103,7 +1103,9 @@ bool Device::populateOCLDeviceConstants() {
}
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(_bkendDevice,
(hsa_agent_info_t)HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT,
(amd::IS_HIP) ?
(hsa_agent_info_t)HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT :
(hsa_agent_info_t)HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT,
&info_.maxComputeUnits_)) {
return false;
}