SWDEV-351966 - Dispatch table for hip runtime
Change-Id: Ie4a44fa8cf1ff9c152146070bbbf6b0636d4e325
This commit is contained in:
committed by
Anusha Godavarthy Surya
orang tua
ae8d3a6a4e
melakukan
5e21f0c6bd
@@ -22,8 +22,9 @@
|
||||
|
||||
#include <windows.h>
|
||||
#include <iostream>
|
||||
|
||||
namespace hip {
|
||||
void ihipDestroyDevice();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
static int reportHook(int reportType, char* message, int* returnValue) {
|
||||
@@ -52,7 +53,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved) {
|
||||
((thread = new amd::HostThread()) != nullptr && thread == amd::Thread::current()))) {
|
||||
return true;
|
||||
}
|
||||
ihipDestroyDevice();
|
||||
hip::ihipDestroyDevice();
|
||||
} break;
|
||||
case DLL_THREAD_DETACH: {
|
||||
amd::Thread* thread = amd::Thread::current();
|
||||
|
||||
Reference in New Issue
Block a user