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:
Mike Li
2021-04-23 09:47:48 -04:00
rodič 8baf02e80b
revize 47ccc6604d
5 změnil soubory, kde provedl 21 přidání a 4 odebrání
+7
Zobrazit soubor
@@ -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.";