Skip to content

Commit eaeb042

Browse files
committed
GPUPerfAPIHSA: remove the check that the runtime's device name matches our device name
Change-Id: I48908db10adbe5c334f7f0be74b1dea4bfdadefd
1 parent 7737f8b commit eaeb042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/GPUPerfAPIHSA/GPUPerfAPIHSA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ GPA_Status GPA_IMP_GetHWInfo(void* pContext, GPA_HWInfo* pHwInfo)
125125
// TODO: requested that the HSA runtime allows us to get revID -- for now hardcode to zero
126126
if (AMDTDeviceInfoUtils::Instance()->GetDeviceInfo(deviceId, REVISION_ID_ANY, cardInfo))
127127
{
128-
if (static_cast<unsigned int>(cardInfo.m_generation) >= static_cast<unsigned int>(GDT_HW_GENERATION_SEAISLAND) &&
129-
_strcmpi(deviceName, cardInfo.m_szCALName) == 0)
128+
if (static_cast<unsigned int>(cardInfo.m_generation) >= static_cast<unsigned int>(GDT_HW_GENERATION_SEAISLAND))
130129
{
131130
pHwInfo->SetDeviceName(cardInfo.m_szCALName);
132131
pHwInfo->SetDeviceID(static_cast<gpa_uint32>(cardInfo.m_deviceID));
@@ -138,6 +137,7 @@ GPA_Status GPA_IMP_GetHWInfo(void* pContext, GPA_HWInfo* pHwInfo)
138137
message << "Device ID: 0x" << hex << cardInfo.m_deviceID << ", ";
139138
message << "Rev ID: 0x" << hex << cardInfo.m_revID << ", ";
140139
message << "Device Name: " << cardInfo.m_szCALName << ".";
140+
message << "HSA RT Device Name: " << deviceName << ".";
141141
GPA_LogDebugMessage(message.str().c_str());
142142
}
143143
}

0 commit comments

Comments
 (0)