Skip to content

Commit 1de3fdb

Browse files
[SYCL] Don't export print_graph(std::string, bool) under -fpreview_breaking_changes
Follow-up for intel#16194. We must keep exporting it for backward ABI compatibility by default, but that isn't necessary for the next major release (which `-fpreview_breaking_changes` covers).
1 parent 25527e1 commit 1de3fdb

File tree

1 file changed

+8
-0
lines changed
  • sycl/include/sycl/ext/oneapi/experimental

1 file changed

+8
-0
lines changed

sycl/include/sycl/ext/oneapi/experimental/graph.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,13 @@ class __SYCL_EXPORT modifiable_command_graph
377377
/// added as dependencies.
378378
void addGraphLeafDependencies(node Node);
379379

380+
#ifdef ___INTEL_PREVIEW_BREAKING_CHANGES
381+
void print_graph(sycl::detail::string_view path, bool verbose = false) const {
382+
print_graph(sycl::detail::string_view{path}, verbose);
383+
}
384+
#else
380385
void print_graph(sycl::detail::string_view path, bool verbose = false) const;
386+
#endif
381387

382388
template <class Obj>
383389
friend const decltype(Obj::impl) &
@@ -387,6 +393,7 @@ class __SYCL_EXPORT modifiable_command_graph
387393
std::shared_ptr<detail::graph_impl> impl;
388394
};
389395

396+
#ifndef ___INTEL_PREVIEW_BREAKING_CHANGES
390397
#ifdef __SYCL_GRAPH_IMPL_CPP
391398
// Magic combination found by trial and error:
392399
__SYCL_EXPORT
@@ -401,6 +408,7 @@ inline
401408
bool verbose) const {
402409
print_graph(sycl::detail::string_view{path}, verbose);
403410
}
411+
#endif
404412

405413
// Templateless executable command-graph base class.
406414
class __SYCL_EXPORT executable_command_graph

0 commit comments

Comments
 (0)