Skip to content

Conversation

@spalicki
Copy link
Contributor

Removing SYCL 1.2.1 specific code.

@spalicki spalicki requested review from a team as code owners November 14, 2024 20:52
@github-actions github-actions bot added the platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel label Nov 14, 2024
#define DNNL_USE_SYCL121_API 0
#endif
#if defined(__INTEL_LLVM_COMPILER) && __INTEL_LLVM_COMPILER >= 20230000
#elif defined(__LIBSYCL_MAJOR_VERSION) && __LIBSYCL_MAJOR_VERSION >= 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(random) there might be other spots to edit:

  • check SYCL_COMPILER_VERSION macro
  • there might be some spots in cuda/hip backend as well where workarounds were implemented (tagging @t4c1 @sgeor255).

@vpirogov
Copy link
Contributor

make test

@spalicki
Copy link
Contributor Author

@densamoilov @mgouicem I also wanted to remove CL/sycl.hpp header include since it is there just for compatibility with older SyCL versions. In many places we have:

#if __has_include(<sycl/sycl.hpp>)
#include <sycl/sycl.hpp>
#elif __has_include(<CL/sycl.hpp>)
#include <CL/sycl.hpp>
#else
#error "Unsupported compiler"
#endif

I wanted to simplify it to:

#if __has_include(<sycl/sycl.hpp>)
#include <sycl/sycl.hpp>
#else
#error "Unsupported compiler"
#endif

@densamoilov
Copy link
Contributor

I also wanted to remove CL/sycl.hpp header include since it is there just for compatibility with older SyCL versions.

@spalicki, I think it should be fine.

@spalicki
Copy link
Contributor Author

make test

@spalicki spalicki force-pushed the spalicki/remove_sycl_121 branch from b29fa15 to aef8703 Compare November 22, 2024 03:27
@spalicki
Copy link
Contributor Author

make test

@spalicki spalicki force-pushed the spalicki/remove_sycl_121 branch from aef8703 to e3cfd3f Compare November 25, 2024 18:56
@spalicki
Copy link
Contributor Author

make test

@spalicki spalicki requested review from sgeor255 and t4c1 November 26, 2024 22:35
@spalicki spalicki self-assigned this Nov 26, 2024
@spalicki spalicki requested a review from densamoilov November 27, 2024 18:04
@spalicki spalicki force-pushed the spalicki/remove_sycl_121 branch 2 times, most recently from 2765ee0 to f944b63 Compare December 7, 2024 00:17
@spalicki spalicki force-pushed the spalicki/remove_sycl_121 branch from f944b63 to 999a883 Compare December 9, 2024 22:02
@spalicki
Copy link
Contributor Author

spalicki commented Dec 9, 2024

make test

@vpirogov vpirogov added this to the v3.7 milestone Dec 11, 2024
@spalicki spalicki merged commit 09f34d3 into main Dec 16, 2024
33 of 34 checks passed
@spalicki spalicki deleted the spalicki/remove_sycl_121 branch December 16, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants