SWDEV-351966 - Dispatch table for hip runtime

Change-Id: Ie4a44fa8cf1ff9c152146070bbbf6b0636d4e325
This commit is contained in:
Anusha GodavarthySurya
2023-04-21 10:46:05 +00:00
committed by Anusha Godavarthy Surya
orang tua ae8d3a6a4e
melakukan 5e21f0c6bd
37 mengubah file dengan 4496 tambahan dan 192 penghapusan
+3 -2
Melihat File
@@ -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();