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>
Этот коммит содержится в:
коммит произвёл
Huang, JinHuiEric
родитель
d3265234e9
Коммит
df6048429c
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user