Skip to content

Commit

Permalink
Revert "Enable default platform contexts via API."
Browse files Browse the repository at this point in the history
This reverts commit e382ffa.
  • Loading branch information
Alexandr-Konovalov committed Jul 2, 2024
1 parent 23d03ed commit 622273b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions src/cmake/windows/vars.template.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ REM
REM ===----------------------------------------------------------------------===
REM

set SYCL_ENABLE_DEFAULT_CONTEXTS=1
set DPL_ROOT=@DPLROOT_REPLACEMENT@

set LIB=@LIBRARY_PATH_REPLACEMENT@;%LIB%
Expand Down
7 changes: 0 additions & 7 deletions src/pstl_offload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,13 +502,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD callReason, LPVOID reserve
if (callReason == DLL_PROCESS_ATTACH && reserved && hInst)
{
ret = __pstl_offload::__do_functions_replacement() ? TRUE : FALSE;

if (ret)
{
// default SYCL context is required for correct operation,
// but under Windows it's disabled by default
sycl::detail::enable_ext_oneapi_default_context(true);
}
}

return ret;
Expand Down

0 comments on commit 622273b

Please sign in to comment.