diff --git a/sycl/include/sycl/ext/oneapi/experimental/graph.hpp b/sycl/include/sycl/ext/oneapi/experimental/graph.hpp index bed78046140bf..8b399848d4b2f 100644 --- a/sycl/include/sycl/ext/oneapi/experimental/graph.hpp +++ b/sycl/include/sycl/ext/oneapi/experimental/graph.hpp @@ -340,7 +340,13 @@ class __SYCL_EXPORT modifiable_command_graph /// @param path The path to write the DOT file to. /// @param verbose If true, print additional information about the nodes such /// as kernel args or memory access where applicable. +#ifdef ___INTEL_PREVIEW_BREAKING_CHANGES + void print_graph(const std::string path, bool verbose = false) const { + print_graph(sycl::detail::string_view{path}, verbose); + } +#else void print_graph(const std::string path, bool verbose = false) const; +#endif /// Get a list of all nodes contained in this graph. std::vector get_nodes() const; @@ -387,6 +393,7 @@ class __SYCL_EXPORT modifiable_command_graph std::shared_ptr impl; }; +#ifndef ___INTEL_PREVIEW_BREAKING_CHANGES #ifdef __SYCL_GRAPH_IMPL_CPP // Magic combination found by trial and error: __SYCL_EXPORT @@ -401,6 +408,7 @@ inline bool verbose) const { print_graph(sycl::detail::string_view{path}, verbose); } +#endif // Templateless executable command-graph base class. class __SYCL_EXPORT executable_command_graph