Skip to content

Commit 5316e0b

Browse files
Dumb windows
1 parent 1eca2fc commit 5316e0b

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

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

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,7 @@ class __SYCL_EXPORT modifiable_command_graph
148148
print_graph(sycl::detail::string_view{path}, verbose);
149149
}
150150
#else
151-
#ifdef __SYCL_GRAPH_IMPL_CPP
152-
// Magic combination found by trial and error:
153-
__SYCL_EXPORT
154-
#if _WIN32
155-
inline
156-
#endif
157-
#else
158-
inline
159-
#endif
160-
void
161-
print_graph(const std::string path, bool verbose = false) const {
162-
print_graph(sycl::detail::string_view{path}, verbose);
163-
}
151+
void print_graph(const std::string path, bool verbose = false) const;
164152
#endif
165153

166154
/// Get a list of all nodes contained in this graph.
@@ -223,6 +211,7 @@ class __SYCL_EXPORT modifiable_command_graph
223211

224212
static void checkNodePropertiesAndThrow(const property_list &Properties);
225213
};
214+
226215
} // namespace detail
227216
} // namespace experimental
228217
} // namespace oneapi

sycl/source/detail/graph/graph_impl.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,13 @@ void modifiable_command_graph::checkNodePropertiesAndThrow(
21002100
Properties, CheckDataLessProperties, CheckPropertiesWithData);
21012101
}
21022102

2103+
#ifndef ___INTEL_PREVIEW_BREAKING_CHANGES
2104+
void modifiable_command_graph::print_graph(const std::string path,
2105+
bool verbose) const {
2106+
print_graph(sycl::detail::string_view{path}, verbose);
2107+
}
2108+
#endif
2109+
21032110
executable_command_graph::executable_command_graph(
21042111
const std::shared_ptr<detail::graph_impl> &Graph, const sycl::context &Ctx,
21052112
const property_list &PropList)

0 commit comments

Comments
 (0)