File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,7 @@ void shutdown() {
80
80
// First, release resources, that may access plugins.
81
81
GlobalHandler::instance ().MScheduler .Inst .reset (nullptr );
82
82
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.
86
83
GlobalHandler::instance ().MPlatformDeviceCache .Inst .reset (nullptr );
87
- #endif
88
84
89
85
// Call to GlobalHandler::instance().getPlugins() initializes plugins. If
90
86
// user application has loaded SYCL runtime, and never called any APIs,
@@ -106,9 +102,7 @@ void shutdown() {
106
102
}
107
103
108
104
#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) {
112
106
// Perform actions based on the reason for calling.
113
107
switch (fdwReason) {
114
108
case DLL_PROCESS_DETACH:
You can’t perform that action at this time.
0 commit comments