Skip to content

Commit 241d271

Browse files
committed
[SYCL] Use proper deprecation warning type
Signed-off-by: Hu, Peisen <[email protected]>
1 parent fab09cf commit 241d271

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ class __SYCL_EXPORT handler {
23142314

23152315
template <typename KernelName = detail::auto_name, typename KernelType,
23162316
typename PropertiesT>
2317-
__SYCL2020_DEPRECATED(
2317+
__SYCL_DEPRECATED(
23182318
"Use sycl::ext::oneapi::experimental::single_task (provided in the "
23192319
"sycl_ext_oneapi_enqueue_functions extension) instead.")
23202320
std::enable_if_t<ext::oneapi::experimental::is_property_list<
@@ -2367,7 +2367,7 @@ class __SYCL_EXPORT handler {
23672367

23682368
template <typename KernelName = detail::auto_name, typename PropertiesT,
23692369
typename... RestT>
2370-
__SYCL2020_DEPRECATED(
2370+
__SYCL_DEPRECATED(
23712371
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
23722372
"sycl_ext_oneapi_enqueue_functions extension) instead.")
23732373
std::enable_if_t<(sizeof...(RestT) > 1) &&
@@ -2386,7 +2386,7 @@ class __SYCL_EXPORT handler {
23862386

23872387
template <typename KernelName = detail::auto_name, typename PropertiesT,
23882388
typename... RestT>
2389-
__SYCL2020_DEPRECATED(
2389+
__SYCL_DEPRECATED(
23902390
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
23912391
"sycl_ext_oneapi_enqueue_functions extension) instead.")
23922392
std::enable_if_t<(sizeof...(RestT) > 1) &&
@@ -2405,7 +2405,7 @@ class __SYCL_EXPORT handler {
24052405

24062406
template <typename KernelName = detail::auto_name, typename PropertiesT,
24072407
typename... RestT>
2408-
__SYCL2020_DEPRECATED(
2408+
__SYCL_DEPRECATED(
24092409
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
24102410
"sycl_ext_oneapi_enqueue_functions extension) instead.")
24112411
std::enable_if_t<(sizeof...(RestT) > 1) &&
@@ -2448,7 +2448,7 @@ class __SYCL_EXPORT handler {
24482448

24492449
template <typename KernelName = detail::auto_name, int Dims,
24502450
typename PropertiesT, typename... RestT>
2451-
__SYCL2020_DEPRECATED(
2451+
__SYCL_DEPRECATED(
24522452
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
24532453
"sycl_ext_oneapi_enqueue_functions extension) instead.")
24542454
std::enable_if_t<(sizeof...(RestT) > 1) &&
@@ -2478,7 +2478,7 @@ class __SYCL_EXPORT handler {
24782478

24792479
template <typename KernelName = detail::auto_name, typename KernelType,
24802480
int Dims, typename PropertiesT>
2481-
__SYCL2020_DEPRECATED(
2481+
__SYCL_DEPRECATED(
24822482
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
24832483
"sycl_ext_oneapi_enqueue_functions extension) instead.")
24842484
void parallel_for_work_group(range<Dims> NumWorkGroups, PropertiesT Props,
@@ -2490,7 +2490,7 @@ class __SYCL_EXPORT handler {
24902490

24912491
template <typename KernelName = detail::auto_name, typename KernelType,
24922492
int Dims, typename PropertiesT>
2493-
__SYCL2020_DEPRECATED(
2493+
__SYCL_DEPRECATED(
24942494
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
24952495
"sycl_ext_oneapi_enqueue_functions extension) instead.")
24962496
void parallel_for_work_group(range<Dims> NumWorkGroups,

sycl/include/sycl/queue.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
20892089
/// \param CodeLoc contains the code location of user code
20902090
template <typename KernelName = detail::auto_name, typename KernelType,
20912091
typename PropertiesT>
2092-
__SYCL2020_DEPRECATED(
2092+
__SYCL_DEPRECATED(
20932093
"Use sycl::ext::oneapi::experimental::single_task (provided in the "
20942094
"sycl_ext_oneapi_enqueue_functions extension) instead.")
20952095
std::enable_if_t<
@@ -2134,7 +2134,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
21342134
/// \param CodeLoc contains the code location of user code
21352135
template <typename KernelName = detail::auto_name, typename KernelType,
21362136
typename PropertiesT>
2137-
__SYCL2020_DEPRECATED(
2137+
__SYCL_DEPRECATED(
21382138
"Use sycl::ext::oneapi::experimental::single_task (provided in the "
21392139
"sycl_ext_oneapi_enqueue_functions extension) instead.")
21402140
std::enable_if_t<
@@ -2184,7 +2184,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
21842184
/// \param CodeLoc contains the code location of user code
21852185
template <typename KernelName = detail::auto_name, typename KernelType,
21862186
typename PropertiesT>
2187-
__SYCL2020_DEPRECATED(
2187+
__SYCL_DEPRECATED(
21882188
"Use sycl::ext::oneapi::experimental::single_task (provided in the "
21892189
"sycl_ext_oneapi_enqueue_functions extension) instead.")
21902190
std::enable_if_t<
@@ -2438,7 +2438,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
24382438
/// const KernelType &KernelFunc".
24392439
template <typename KernelName = detail::auto_name, int Dims,
24402440
typename PropertiesT, typename... RestT>
2441-
__SYCL2020_DEPRECATED(
2441+
__SYCL_DEPRECATED(
24422442
"Use sycl::ext::oneapi::experimental::parallel_for (provided in the "
24432443
"sycl_ext_oneapi_enqueue_functions extension) instead.")
24442444
std::enable_if_t<

0 commit comments

Comments
 (0)