Add Size of VGPR and SGPR to HsaNodeProperties
Signed-off-by: Mike Li <Tianxinmike.Li@amd.com> Change-Id: I7e6c0c5b9fd90c0bb5f3b7d35362a073afdcf9b8
Tento commit je obsažen v:
@@ -59,6 +59,13 @@ TEST_F(KFDTopologyTest , BasicTest) {
|
||||
EXPECT_GE(pNodeProperties->EngineId.ui32.Major, 7) << "Major Version is less than 7";
|
||||
EXPECT_LT(pNodeProperties->EngineId.ui32.Minor, 10) << "Minor Version is greater than 9";
|
||||
EXPECT_GT(pNodeProperties->uCodeEngineVersions.uCodeSDMA, 0) << "sDMA firmware version is 0";
|
||||
HSAuint32 VGPRSize = (FamilyIdFromNode(pNodeProperties) == FAMILY_AR ||
|
||||
FamilyIdFromNode(pNodeProperties) == FAMILY_AL) ?
|
||||
0x80000 : 0x40000;
|
||||
EXPECT_EQ(pNodeProperties->VGPRSizePerCU, VGPRSize) << "VGPR Size Per CU is not correct";
|
||||
EXPECT_EQ(pNodeProperties->SGPRSizePerCU, 0x4000) << "SGPR Size Per CU is not correct";
|
||||
LOG() << "VGPR Size is " << pNodeProperties->VGPRSizePerCU <<
|
||||
" SGPR Size is " << pNodeProperties->SGPRSizePerCU << std::endl;
|
||||
}
|
||||
EXPECT_GT(pNodeProperties->NumMemoryBanks, HSAuint32(0)) << "Node index: " << node << "No MemoryBanks.";
|
||||
EXPECT_GT(pNodeProperties->NumCaches, HSAuint32(0)) << "Node index: " << node << "No Caches.";
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele