Skip to content

Commit c0f8a08

Browse files
[SYCL] Deprecate syclcompat (#19861)
1 parent 4fe671b commit c0f8a08

File tree

16 files changed

+89
-17
lines changed

16 files changed

+89
-17
lines changed

sycl/doc/syclcompat/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**⚠️ DEPRECATION NOTICE ⚠️**
2+
3+
**SYCLcompat is deprecated and will be removed in a future release. Users are encouraged to migrate to native SYCL APIs or alternative compatibility solutions. The `syclcompat` namespace has been marked with `[[deprecated]]` attribute.**
4+
15
# SYCLcompat
26

37
SYCLcompat is a header-only library that intends to help developers familiar

sycl/include/syclcompat/atomic.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#include <syclcompat/traits.hpp>
4242

43-
namespace syclcompat {
43+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
4444

4545
/// Atomically add the value operand to the value at the addr and assign the
4646
/// result to the value at addr.

sycl/include/syclcompat/defs.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ template <int Arg> class syclcompat_kernel_scalar;
6666
SYCLCOMPAT_MAKE_VERSION(SYCLCOMPAT_MAJOR_VERSION, SYCLCOMPAT_MINOR_VERSION, \
6767
SYCLCOMPAT_PATCH_VERSION)
6868

69-
namespace syclcompat {
69+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
7070
enum error_code { success = 0, backend_error = 1, default_error = 999 };
7171
/// A dummy function introduced to assist auto migration.
7272
/// The SYCLomatic user should replace it with a real error-handling function.

sycl/include/syclcompat/device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#include <sycl/properties/queue_properties.hpp>
5757
#include <sycl/queue.hpp>
5858

59-
namespace syclcompat {
59+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
6060

6161
namespace detail {
6262
static void parse_version_string(const std::string &ver, int &major,

sycl/include/syclcompat/dims.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include <sycl/range.hpp>
2828

29-
namespace syclcompat {
29+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
3030

3131
class dim3 {
3232
public:

sycl/include/syclcompat/group_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <syclcompat/defs.hpp>
3939
#include <syclcompat/math.hpp>
4040

41-
namespace syclcompat {
41+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
4242
namespace group {
4343
namespace detail {
4444

sycl/include/syclcompat/id_query.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <sycl/ext/oneapi/free_function_queries.hpp>
2626
#include <sycl/nd_item.hpp>
2727

28-
namespace syclcompat {
28+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
2929

3030
using sycl::ext::oneapi::this_work_item::get_nd_item;
3131

sycl/include/syclcompat/kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include <sycl/nd_range.hpp>
5555
#include <sycl/queue.hpp>
5656

57-
namespace syclcompat {
57+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
5858

5959
typedef void (*kernel_functor)(sycl::queue &, const sycl::nd_range<3> &,
6060
unsigned int, void **, void **);

sycl/include/syclcompat/launch.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <syclcompat/dims.hpp>
3434
#include <syclcompat/launch_policy.hpp>
3535

36-
namespace syclcompat {
36+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
3737

3838
namespace detail {
3939

@@ -120,8 +120,8 @@ launch(const dim3 &grid, const dim3 &threads, Args... args) {
120120

121121
} // namespace syclcompat
122122

123-
namespace syclcompat::experimental {
124-
123+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
124+
namespace experimental {
125125
namespace detail {
126126

127127
template <auto F, typename LaunchPolicy, typename... Args>
@@ -145,7 +145,6 @@ sycl::event launch(LaunchPolicy launch_policy, sycl::queue q, Args... args) {
145145
}
146146
});
147147
}
148-
149148
}
150149

151150

@@ -161,4 +160,5 @@ sycl::event launch(LaunchPolicy launch_policy, Args... args) {
161160
return launch<F>(launch_policy, get_default_queue(), args...);
162161
}
163162

164-
} // namespace syclcompat::experimental
163+
} // namespace experimental
164+
} // namespace syclcompat

sycl/include/syclcompat/launch_policy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <syclcompat/dims.hpp>
3535
#include <syclcompat/traits.hpp>
3636

37-
namespace syclcompat {
37+
namespace [[deprecated("syclcompat is deprecated")]] syclcompat {
3838
namespace experimental {
3939

4040
namespace sycl_exp = sycl::ext::oneapi::experimental;

0 commit comments

Comments
 (0)