Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions sycl/include/sycl/info/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

#pragma once

#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_DEPRECATED
Comment thread
KornevNikita marked this conversation as resolved.
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
#endif
#endif // __INTEL_PREVIEW_BREAKING_CHANGES

#include <sycl/detail/info_desc_traits.hpp>
#include <sycl/range.hpp>
#include <unified-runtime/ur_api.h>
Expand Down Expand Up @@ -35,15 +38,23 @@ struct num_args : kernel_traits<UR_KERNEL_INFO_NUM_ARGS> {
struct attributes : kernel_traits<UR_KERNEL_INFO_ATTRIBUTES> {
using return_type = std::string;
};
struct function_name : kernel_traits<UR_KERNEL_INFO_FUNCTION_NAME> {
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
struct __SYCL_DEPRECATED(
"info::kernel::function_name is not part of SYCL 2020")
function_name : kernel_traits<UR_KERNEL_INFO_FUNCTION_NAME> {
using return_type = std::string;
};
struct reference_count : kernel_traits<UR_KERNEL_INFO_REFERENCE_COUNT> {
struct __SYCL_DEPRECATED(
"info::kernel::reference_count is not part of SYCL 2020")
reference_count : kernel_traits<UR_KERNEL_INFO_REFERENCE_COUNT> {
using return_type = uint32_t;
};
struct context : kernel_traits<UR_KERNEL_INFO_CONTEXT> {
struct __SYCL_DEPRECATED(
"info::kernel::context is not part of SYCL 2020")
context : kernel_traits<UR_KERNEL_INFO_CONTEXT> {
using return_type = sycl::context;
};
#endif // __INTEL_PREVIEW_BREAKING_CHANGES
} // namespace kernel

namespace kernel_device_specific {
Expand Down
Loading