kfdtest: Remove IsaGen from KFDExceptionTest

Replace with LLVM-based Assembler.

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


[ROCm/ROCR-Runtime commit: 4c7cf6e7d2]
This commit is contained in:
Graham Sider
2021-09-30 18:33:06 -04:00
zatwierdzone przez Harish Kasiviswanathan
rodzic 6b7da770dd
commit 537381a123
2 zmienionych plików z 3 dodań i 11 usunięć
@@ -33,18 +33,12 @@ void KFDExceptionTest::SetUp() {
KFDBaseComponentTest::SetUp();
m_pIsaGen = IsaGenerator::Create(m_FamilyId);
ROUTINE_END
}
void KFDExceptionTest::TearDown() {
ROUTINE_START
if (m_pIsaGen)
delete m_pIsaGen;
m_pIsaGen = NULL;
KFDBaseComponentTest::TearDown();
// WORKAROUND: This needs to be fixed in the kernel
@@ -75,7 +69,8 @@ void KFDExceptionTest::TestMemoryException(int defaultGPUNode, HSAuint64 pSrc,
eventDesc.SyncVar.SyncVar.UserData = NULL;
eventDesc.SyncVar.SyncVarSize = 0;
m_pIsaGen->GetCopyDwordIsa(isaBuffer);
ASSERT_SUCCESS(m_pAsm->RunAssembleBuf(CopyDwordIsa, isaBuffer.As<char*>()));
m_ChildStatus = queue.Create(defaultGPUNode);
if (m_ChildStatus != HSAKMT_STATUS_SUCCESS) {
WARN() << "Queue create failed" << std::endl;
@@ -26,12 +26,11 @@
#include <gtest/gtest.h>
#include "IsaGenerator.hpp"
#include "KFDBaseComponentTest.hpp"
class KFDExceptionTest : public KFDBaseComponentTest {
public:
KFDExceptionTest() :m_pIsaGen(NULL), m_ChildPid(-1) {
KFDExceptionTest() : m_ChildPid(-1) {
/* Because there could be early return before m_ChildPid is set
* by fork(), we should initialize m_ChildPid to a non-zero value
* to avoid possible exit of the main process.
@@ -59,8 +58,6 @@ class KFDExceptionTest : public KFDBaseComponentTest {
protected: // Members
pid_t m_ChildPid;
HSAKMT_STATUS m_ChildStatus;
IsaGenerator* m_pIsaGen;
};
#endif // __KFD_EXCEPTION_TEST__H__