kfdtest: Remove IsaGen from KFDHWSTest

Replace with LLVM-based Assembler.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: Ibbc4103d9498321b87feadf14a523b0d44d1851c


[ROCm/ROCR-Runtime commit: 780f0b618c]
This commit is contained in:
Graham Sider
2021-09-30 18:32:48 -04:00
committed by Harish Kasiviswanathan
parent 904f0ade4f
commit 6b7da770dd
2 changed files with 4 additions and 13 deletions
@@ -28,18 +28,12 @@ void KFDHWSTest::SetUp() {
KFDBaseComponentTest::SetUp();
m_pIsaGen = IsaGenerator::Create(m_FamilyId);
ROUTINE_END
}
void KFDHWSTest::TearDown() {
ROUTINE_START
if (m_pIsaGen)
delete m_pIsaGen;
m_pIsaGen = NULL;
KFDBaseComponentTest::TearDown();
ROUTINE_END
@@ -70,7 +64,9 @@ void KFDHWSTest::RunTest(unsigned nProcesses, unsigned nQueues, unsigned nLoops)
// Run work on all queues
HsaMemoryBuffer isaBuffer(PAGE_SIZE, defaultGPUNode, true/*zero*/, false/*local*/, true/*exec*/);
m_pIsaGen->GetNoopIsa(isaBuffer);
ASSERT_SUCCESS(m_pAsm->RunAssembleBuf(NoopIsa, isaBuffer.As<char*>()));
for (l = 0; l < nLoops; l++) {
for (q = 0; q < nQueues; q++) {
if (dispatch[q])
@@ -27,14 +27,12 @@
#include <gtest/gtest.h>
#include "PM4Queue.hpp"
#include "IsaGenerator.hpp"
#include "KFDMultiProcessTest.hpp"
#include "Dispatch.hpp"
class KFDHWSTest : public KFDMultiProcessTest {
public:
KFDHWSTest():m_pIsaGen(NULL) {}
KFDHWSTest() {}
~KFDHWSTest() {}
protected:
@@ -42,9 +40,6 @@ class KFDHWSTest : public KFDMultiProcessTest {
virtual void TearDown();
void RunTest(unsigned nProcesses, unsigned nQueues, unsigned nLoops);
protected: // Members
IsaGenerator* m_pIsaGen;
};
#endif // __KFD_QCM_TEST__H__