kfdtest: Improve FlatScratchAccess by not hardcoding the value
We should use the SE number reflected by NumShaderBanks of the node rather than hardcoding it. Change-Id: I945fb001f81ce506249cf485a7ce25aee8219bc7 Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Este cometimento está contido em:
@@ -674,7 +674,7 @@ TEST_F(KFDMemoryTest, FlatScratchAccess) {
|
||||
|
||||
for (unsigned int bank = 0; bank < pNodeProperties->NumMemoryBanks; bank++) {
|
||||
if (memoryProperties[bank].HeapType == HSA_HEAPTYPE_GPU_SCRATCH) {
|
||||
int numWaves = 4; // WAVES must be >= # SE
|
||||
int numWaves = pNodeProperties->NumShaderBanks; // WAVES must be >= # SE
|
||||
int waveSize = 1; // Amount of space used by each wave in units of 256 dwords
|
||||
|
||||
PM4Queue queue;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador