From 6b7da770ddc0dcdad02c6a77f54b611d11cd03f3 Mon Sep 17 00:00:00 2001 From: Graham Sider Date: Thu, 30 Sep 2021 18:32:48 -0400 Subject: [PATCH] kfdtest: Remove IsaGen from KFDHWSTest Replace with LLVM-based Assembler. Signed-off-by: Graham Sider Change-Id: Ibbc4103d9498321b87feadf14a523b0d44d1851c [ROCm/ROCR-Runtime commit: 780f0b618c9751e21308723ac6860ded4d83a3c3] --- projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.cpp | 10 +++------- projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.hpp | 7 +------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.cpp b/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.cpp index 66c0b5d8ff..3040b16ac6 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.cpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.cpp @@ -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())); + for (l = 0; l < nLoops; l++) { for (q = 0; q < nQueues; q++) { if (dispatch[q]) diff --git a/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.hpp b/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.hpp index e3ea5155c2..cbec52fbed 100644 --- a/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.hpp +++ b/projects/rocr-runtime/tests/kfdtest/src/KFDHWSTest.hpp @@ -27,14 +27,12 @@ #include #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__