Skip to content

Commit 38c124b

Browse files
committed
Moving to inline impl.
1 parent 547b0c9 commit 38c124b

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,16 @@ inline void partial_barrier(queue Q, const std::vector<event> &Events,
372372
Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
373373
}
374374

375-
__SYCL_EXPORT void execute_graph(queue Q,
376-
command_graph<graph_state::executable> &G,
377-
const sycl::detail::code_location &CodeLoc =
378-
sycl::detail::code_location::current());
379-
380-
__SYCL_EXPORT void execute_graph(handler CGH,
381-
command_graph<graph_state::executable> &G,
382-
const sycl::detail::code_location &CodeLoc =
383-
sycl::detail::code_location::current());
375+
inline void execute_graph(queue Q, command_graph<graph_state::executable> &G,
376+
const sycl::detail::code_location &CodeLoc =
377+
sycl::detail::code_location::current()) {
378+
Q.ext_oneapi_graph(G, CodeLoc);
379+
}
380+
381+
inline void execute_graph(handler &CGH,
382+
command_graph<graph_state::executable> &G) {
383+
CGH.ext_oneapi_graph(G);
384+
}
384385

385386
} // namespace ext::oneapi::experimental
386387
} // namespace _V1

sycl/source/enqueue_functions.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,6 @@ __SYCL_EXPORT void mem_advise(queue Q, void *Ptr, size_t NumBytes, int Advice,
3838
/*CallerNeedsEvent=*/false);
3939
}
4040

41-
__SYCL_EXPORT void enqueue_graph(handler CGH,
42-
command_graph<graph_state::executable> &G,
43-
const sycl::detail::code_location &CodeLoc) {
44-
sycl::detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
45-
CGH.ext_oneapi_graph(G);
46-
}
47-
48-
__SYCL_EXPORT void enqueue_graph(queue Q,
49-
command_graph<graph_state::executable> &G,
50-
const sycl::detail::code_location &CodeLoc) {
51-
Q.ext_oneapi_graph(G, CodeLoc);
52-
}
53-
5441
} // namespace ext::oneapi::experimental
5542
} // namespace _V1
5643
} // namespace sycl

0 commit comments

Comments
 (0)