kfdtest: Improve the printing message for CuMasking tests
Decimal is better than hex in this case. Change-Id: Ic15a9373e99160880b98d3dcd6827d551c87b77a Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
이 커밋은 다음에 포함됨:
1 부모
836dfd0752
커밋
3e4c42ef13
2 파일이 변경됨
+9
-9
검색과 일치하는 파일 없음
@@ -655,10 +655,10 @@ TEST_F(KFDQMTest, BasicCuMaskingLinear) {
|
||||
const HsaNodeProperties *pNodeProperties = m_NodeInfo.GetNodeProperties(defaultGPUNode);
|
||||
uint32_t ActiveCU = (pNodeProperties->NumFComputeCores / pNodeProperties->NumSIMDPerCU);
|
||||
uint32_t numSEs = pNodeProperties->NumShaderBanks;
|
||||
LOG() << std::hex << "# Compute cores: 0x" << pNodeProperties->NumFComputeCores << std::endl;
|
||||
LOG() << std::hex << "# SIMDs per CPU: 0x" << pNodeProperties->NumSIMDPerCU << std::endl;
|
||||
LOG() << std::hex << "# Shader engines: 0x" << numSEs << std::endl;
|
||||
LOG() << std::hex << "# Active CUs: 0x" << ActiveCU << std::endl;
|
||||
LOG() << std::dec << "# Compute cores: " << pNodeProperties->NumFComputeCores << std::endl;
|
||||
LOG() << std::dec << "# SIMDs per CU: " << pNodeProperties->NumSIMDPerCU << std::endl;
|
||||
LOG() << std::dec << "# Shader engines: " << numSEs << std::endl;
|
||||
LOG() << std::dec << "# Active CUs: " << ActiveCU << std::endl;
|
||||
HSAint64 TimewithCU1, TimewithCU;
|
||||
uint32_t maskNumDwords = (ActiveCU + 31) / 32; /* Round up to the nearest multiple of 32 */
|
||||
uint32_t maskNumBits = maskNumDwords * 32;
|
||||
@@ -718,10 +718,10 @@ TEST_F(KFDQMTest, BasicCuMaskingEven) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOG() << std::hex << "# Compute cores: 0x" << pNodeProperties->NumFComputeCores << std::endl;
|
||||
LOG() << std::hex << "# SIMDs per CPU: 0x" << pNodeProperties->NumSIMDPerCU << std::endl;
|
||||
LOG() << std::hex << "# Shader engines: 0x" << numShaderEngines << std::endl;
|
||||
LOG() << std::hex << "# Active CUs: 0x" << ActiveCU << std::endl;
|
||||
LOG() << std::dec << "# Compute cores: " << pNodeProperties->NumFComputeCores << std::endl;
|
||||
LOG() << std::dec << "# SIMDs per CU: " << pNodeProperties->NumSIMDPerCU << std::endl;
|
||||
LOG() << std::dec << "# Shader engines: " << numShaderEngines << std::endl;
|
||||
LOG() << std::dec << "# Active CUs: " << ActiveCU << std::endl;
|
||||
HSAint64 TimewithCU1, TimewithCU;
|
||||
uint32_t maskNumDwords = (ActiveCU + 31) / 32; /* Round up to the nearest multiple of 32 */
|
||||
uint32_t maskNumBits = maskNumDwords * 32;
|
||||
|
||||
새 이슈에서 참조
사용자 차단