kfdtest: allow toggle of dispatch privilege
For GFX11 debugger testing, waves require to start in non-priv mode for
some test cases, so allow tester to set this.
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: Iee93fda926bfd336d51c79c086f1f75bc35b70e5
[ROCm/ROCR-Runtime commit: 6c5121faff]
Этот коммит содержится в:
коммит произвёл
Jonathan Kim
родитель
78f32a3b5e
Коммит
e8ea199d97
@@ -74,6 +74,10 @@ void Dispatch::SetSpiPriority(unsigned int priority) {
|
||||
m_SpiPriority = priority;
|
||||
}
|
||||
|
||||
void Dispatch::SetPriv(bool priv) {
|
||||
m_NeedCwsrWA = priv;
|
||||
}
|
||||
|
||||
void Dispatch::Submit(BaseQueue& queue) {
|
||||
ASSERT_NE(m_pEop, (void*)0);
|
||||
EXPECT_EQ(m_FamilyId, queue.GetFamilyId());
|
||||
|
||||
@@ -45,6 +45,8 @@ class Dispatch {
|
||||
void SetScratch(int numWaves, int waveSize, HSAuint64 scratch_base);
|
||||
|
||||
void SetSpiPriority(unsigned int priority);
|
||||
|
||||
void SetPriv(bool priv);
|
||||
|
||||
HsaEvent *GetHsaEvent() { return m_pEop; }
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user