kfdtest: fix max queues on multi-gpu mode
The max queues per process is 1024 in KFD,
KFDQMTest.OverSubscribeCpQueues fails with multi-gpu mode
on more than 15 gpus, because 65x16=1040 exceeds 1024, so
changing MAX_CP_QUEUES to adapt it will fix the issue.
Signed-off-by: Eric Huang <jinhuieric.huang@amd.com>
[ROCm/ROCR-Runtime commit: df6048429c]
Este commit está contenido en:
cometido por
Huang, JinHuiEric
padre
9055cf8092
commit
13cdca7fb3
@@ -36,6 +36,8 @@
|
||||
|
||||
#include "Dispatch.hpp"
|
||||
|
||||
extern unsigned int g_TestGPUsNum;
|
||||
|
||||
void KFDQMTest::SetUp() {
|
||||
ROUTINE_START
|
||||
|
||||
@@ -740,7 +742,13 @@ static void OverSubscribeCpQueues(KFDTEST_PARAMETERS* pTestParamters) {
|
||||
return;
|
||||
}
|
||||
|
||||
static const unsigned int MAX_CP_QUEUES = 65;
|
||||
/* The max queues per process is 1024 limited by
|
||||
* KFD, so MAX_CP_QUEUES is needed to adapt it
|
||||
* when total queues exceed it.
|
||||
*/
|
||||
static const unsigned int MAX_CP_QUEUES = g_TestGPUsNum > 15 ?
|
||||
1024 / g_TestGPUsNum :
|
||||
65;
|
||||
static const unsigned int MAX_PACKETS = 100;
|
||||
|
||||
HsaMemoryBuffer destBuf(PAGE_SIZE, gpuNode, false);
|
||||
|
||||
Referencia en una nueva incidencia
Block a user