You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[DLE2025.2] Fix warning: ext_oneapi_get_default_context is deprecated: use khr_get_default_context() instead (#4973)
Locally on subset tests - works. CI is still not successful for some
reason: #4963
~The implementation in PyTorch gives confidence in these changes
https://github.com/pytorch/pytorch/blob/06c7516994d6fdd4b1ac8b8aeae74cdcae0d34f4/c10/xpu/XPUFunctions.cpp#L138~
**UPD:** Pytorch approach doesn't suit us, they define the version
`SYCL_COMPILER_VERSION` in
https://github.com/pytorch/pytorch/blob/2a70d98abf8256d3d768eff028fca20198579824/cmake/Modules/FindSYCLToolkit.cmake#L60,
using `icpx --version`. Since `icpx` is not always available to us, we
will have to use the sycl version, which is defined directly in
`sycl/version.cpp` header (however, the version must be determined
carefully, since it does not match the version Pytorch uses).
For example:
2025.2.0
```cpp
// from sycl/version.hpp
#define __SYCL_COMPILER_VERSION 20250604
#define __LIBSYCL_MAJOR_VERSION 8
#define __LIBSYCL_MINOR_VERSION 0
#define __LIBSYCL_PATCH_VERSION 0
```
```bash
icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2025.2.0 (2025.2.0.20250605)
```
vs
2025.1.1
```cpp
// from sycl/version.hpp
#define __SYCL_COMPILER_VERSION 20250418
#define __LIBSYCL_MAJOR_VERSION 8
#define __LIBSYCL_MINOR_VERSION 0
#define __LIBSYCL_PATCH_VERSION 0
```
```bash
icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2025.1.1 (2025.1.1.20250418)
```
Candidate for cherry-pick.
---------
Signed-off-by: Anatoly Myachev <[email protected]>
0 commit comments