Skip to content

Commit d607867

Browse files
Guard/dispatch the correct overload
1 parent 5739b0c commit d607867

File tree

1 file changed

+7
-6
lines changed
  • sycl/include/sycl/ext/oneapi/experimental

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,14 @@ class __SYCL_EXPORT modifiable_command_graph
340340
/// @param path The path to write the DOT file to.
341341
/// @param verbose If true, print additional information about the nodes such
342342
/// as kernel args or memory access where applicable.
343+
#ifdef ___INTEL_PREVIEW_BREAKING_CHANGES
344+
void modifiable_command_graph::print_graph(const std::string path,
345+
bool verbose) const {
346+
print_graph(sycl::detail::string_view{path}, verbose);
347+
}
348+
#else
343349
void print_graph(const std::string path, bool verbose = false) const;
350+
#endif
344351

345352
/// Get a list of all nodes contained in this graph.
346353
std::vector<node> get_nodes() const;
@@ -377,13 +384,7 @@ class __SYCL_EXPORT modifiable_command_graph
377384
/// added as dependencies.
378385
void addGraphLeafDependencies(node Node);
379386

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
385387
void print_graph(sycl::detail::string_view path, bool verbose = false) const;
386-
#endif
387388

388389
template <class Obj>
389390
friend const decltype(Obj::impl) &

0 commit comments

Comments
 (0)