Skip to content

Commit d2e967a

Browse files
committed
revert
Signed-off-by: Byoungro So <[email protected]>
1 parent 1dc38df commit d2e967a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

sycl/source/detail/global_handler.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ void shutdown() {
8080
// First, release resources, that may access plugins.
8181
GlobalHandler::instance().MScheduler.Inst.reset(nullptr);
8282
GlobalHandler::instance().MProgramManager.Inst.reset(nullptr);
83-
#ifndef _WIN32
84-
// HACK: there is a problem of L0 driver getting unloaded prematurely on
85-
// Windows. This causes crash while destroying devices in the cache.
8683
GlobalHandler::instance().MPlatformDeviceCache.Inst.reset(nullptr);
87-
#endif
8884

8985
// Call to GlobalHandler::instance().getPlugins() initializes plugins. If
9086
// user application has loaded SYCL runtime, and never called any APIs,
@@ -106,9 +102,7 @@ void shutdown() {
106102
}
107103

108104
#ifdef _WIN32
109-
extern "C" __SYCL_EXPORT BOOL WINAPI DllMain(HINSTANCE hinstDLL,
110-
DWORD fdwReason,
111-
LPVOID lpReserved) {
105+
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
112106
// Perform actions based on the reason for calling.
113107
switch (fdwReason) {
114108
case DLL_PROCESS_DETACH:

0 commit comments

Comments
 (0)