kfdtest: Instantiate Assembler in KFDBaseComponentTest

Instantiate in KFDBaseComponentTest::SetUp() and destroy in TearDown().
This ensures m_pAsm is available for all tests.

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


[ROCm/ROCR-Runtime commit: 235636d598]
Este commit está contenido en:
Graham Sider
2021-10-08 13:35:51 -04:00
cometido por Harish Kasiviswanathan
padre 171f1e5a40
commit 254ec57f03
Se han modificado 2 ficheros con 8 adiciones y 0 borrados
@@ -68,6 +68,8 @@ void KFDBaseComponentTest::SetUp() {
g_baseTest = this;
m_pAsm = new Assembler(GetGfxVersion(nodeProperties));
ROUTINE_END
}
@@ -86,6 +88,10 @@ void KFDBaseComponentTest::TearDown() {
EXPECT_SUCCESS(hsaKmtCloseKFD());
g_baseTest = NULL;
if (m_pAsm)
delete m_pAsm;
m_pAsm = nullptr;
ROUTINE_END
}