Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions dpnp/backend/src/queue_sycl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,17 @@ class backend_sycl

static backend_sycl &get()
{
#if defined(_WIN32) && INTEL_MKL_VERSION == 20260000
// TODO: remove once MKLD-19835 is resolved
// mt19937 (oneMKL 2026.0) destructor crashes during DLL_PROCESS_DETACH
// on Windows (Battlemage/Level Zero). Use a heap-allocated
// process-lifetime singleton to skip destructor; OS reclaims memory.
static backend_sycl *backend = new backend_sycl{};
return *backend;
#else
static backend_sycl backend{};
return backend;
#endif
}

static sycl::queue &get_queue()
Expand Down
Loading