2
0

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:
Yong Zhao
2019-07-31 14:32:45 -04:00
ascendente 23db2c658d
cometimento 5ae5854302
+1 -1
Ver ficheiro
@@ -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;