bb980462e7
IPC was failing due to calling fork when HSA was open. The fix was correcting incomplete cleanup in several other tests. TestBase::Close (via CommonCleanUp) now checks that HSA is properly closed between tests. rocrtstPerf.Memory_Async_Copy uses hwloc which uses OpenCL which has no shutdown routine. Consequently this test can not cleanup properly. I added a hack to force HSA refcount to the value it should have if OpenCL were cleaning up but this leaks resources and potentially puts hwloc & OpenCL in a bad state. OpenCL loads LLVM which installs some exit handlers. Those handlers can't execute in a child process and can't be removed since OpenCL doesn't cleanup. IPC hacks around this by aborting rather than exiting in the child process. Change-Id: I92326a73d7b11632208717d99728e6dafdc7d3ca