kfdtest: Remove IsaGen from KFDHWSTest

Replace with LLVM-based Assembler.

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: Ibbc4103d9498321b87feadf14a523b0d44d1851c
Tá an tiomantas seo le fáil i:
Graham Sider
2021-09-30 18:32:48 -04:00
tiomanta ag Harish Kasiviswanathan
tuismitheoir 8a6743aef4
tiomantas 780f0b618c
D'athraigh 2 comhad le 4 breiseanna agus 13 scriosta
+3 -7
Féach ar an gComhad
@@ -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])
+1 -6
Féach ar an gComhad
@@ -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__