Skip to content

Commit 847aad9

Browse files
committed
guard abi breaking changes
1 parent f9e7208 commit 847aad9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2824,10 +2824,15 @@ class __SYCL_EXPORT handler {
28242824
/// Executes a command_graph.
28252825
///
28262826
/// \param Graph Executable command_graph to run
2827+
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
28272828
void
28282829
ext_oneapi_graph(const ext::oneapi::experimental::command_graph<
28292830
ext::oneapi::experimental::graph_state::executable> &Graph);
2830-
2831+
#else
2832+
void ext_oneapi_graph(ext::oneapi::experimental::command_graph<
2833+
ext::oneapi::experimental::graph_state::executable>
2834+
Graph);
2835+
#endif
28312836
/// Copies data from host to device, where \p Src is a USM pointer and \p Dest
28322837
/// is an opaque image memory handle. An exception is thrown if either \p Src
28332838
/// is nullptr or \p Dest is incomplete. The behavior is undefined if

sycl/source/handler.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,8 +2323,15 @@ void handler::setKernelWorkGroupMem(size_t Size) {
23232323
}
23242324

23252325
void handler::ext_oneapi_graph(
2326+
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
2327+
ext::oneapi::experimental::command_graph<
2328+
ext::oneapi::experimental::graph_state::executable>
2329+
Graph
2330+
#else
23262331
const ext::oneapi::experimental::command_graph<
2327-
ext::oneapi::experimental::graph_state::executable> &Graph) {
2332+
ext::oneapi::experimental::graph_state::executable> &Graph
2333+
#endif
2334+
) {
23282335
setType(detail::CGType::ExecCommandBuffer);
23292336
impl->MExecGraph = detail::getSyclObjImpl(Graph).get();
23302337
}

0 commit comments

Comments
 (0)