|
20 | 20 | namespace sycl { |
21 | 21 | inline namespace _V1 { |
22 | 22 |
|
23 | | -#ifndef __INTEL_PREVIEW_BREAKING_CHANGES |
24 | | -namespace detail { |
25 | | -SubmissionInfo::SubmissionInfo() |
26 | | - : impl{std::make_shared<SubmissionInfoImpl>()} {} |
27 | | - |
28 | | -optional<SubmitPostProcessF> &SubmissionInfo::PostProcessorFunc() { |
29 | | - // No longer in use, but needs to be exposed for use in SYCL programs built |
30 | | - // with the old headers. |
31 | | - static optional<SubmitPostProcessF> DoNotUsePostProcessorFunc; |
32 | | - return DoNotUsePostProcessorFunc; |
33 | | -} |
34 | | - |
35 | | -const optional<SubmitPostProcessF> &SubmissionInfo::PostProcessorFunc() const { |
36 | | - // No longer in use, but needs to be exposed for use in SYCL programs built |
37 | | - // with the old headers. |
38 | | - static optional<SubmitPostProcessF> DoNotUsePostProcessorFunc; |
39 | | - return DoNotUsePostProcessorFunc; |
40 | | -} |
41 | | - |
42 | | -#ifndef __INTEL_PREVIEW_BREAKING_CHANGES |
43 | | -std::shared_ptr<detail::queue_impl> &SubmissionInfo::SecondaryQueue() { |
44 | | - return impl->MSecondaryQueue; |
45 | | -} |
46 | | - |
47 | | -const std::shared_ptr<detail::queue_impl> & |
48 | | -SubmissionInfo::SecondaryQueue() const { |
49 | | - return impl->MSecondaryQueue; |
50 | | -} |
51 | | -#endif |
52 | | - |
53 | | -ext::oneapi::experimental::event_mode_enum &SubmissionInfo::EventMode() { |
54 | | - return impl->MEventMode; |
55 | | -} |
56 | | - |
57 | | -const ext::oneapi::experimental::event_mode_enum & |
58 | | -SubmissionInfo::EventMode() const { |
59 | | - return impl->MEventMode; |
60 | | -} |
61 | | -} // namespace detail |
62 | | - |
63 | | -#endif // __INTEL_PREVIEW_BREAKING_CHANGES |
64 | | - |
65 | 23 | queue::queue(const context &SyclContext, const device_selector &DeviceSelector, |
66 | 24 | const async_handler &AsyncHandler, const property_list &PropList) { |
67 | 25 | const std::vector<device> Devs = SyclContext.get_devices(); |
@@ -205,113 +163,6 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice, |
205 | 163 | /*CallerNeedsEvent=*/true); |
206 | 164 | } |
207 | 165 |
|
208 | | -#ifndef __INTEL_PREVIEW_BREAKING_CHANGES |
209 | | -/// TODO: Unused. Remove these when ABI-break window is open. |
210 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
211 | | - const detail::code_location &CodeLoc) { |
212 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, true); |
213 | | -} |
214 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
215 | | - const detail::code_location &CodeLoc, |
216 | | - bool IsTopCodeLoc) { |
217 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, IsTopCodeLoc); |
218 | | -} |
219 | | - |
220 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
221 | | - [[maybe_unused]] queue SecondQueue, |
222 | | - const detail::code_location &CodeLoc) { |
223 | | - return impl->submit(CGH, CodeLoc, true); |
224 | | -} |
225 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
226 | | - [[maybe_unused]] queue SecondQueue, |
227 | | - const detail::code_location &CodeLoc, |
228 | | - bool IsTopCodeLoc) { |
229 | | - return impl->submit(CGH, CodeLoc, IsTopCodeLoc); |
230 | | -} |
231 | | - |
232 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
233 | | - const detail::code_location &CodeLoc) { |
234 | | - submit_without_event_impl(std::move(CGH), {}, CodeLoc, true); |
235 | | -} |
236 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
237 | | - const detail::code_location &CodeLoc, |
238 | | - bool IsTopCodeLoc) { |
239 | | - submit_without_event_impl(std::move(CGH), {}, CodeLoc, IsTopCodeLoc); |
240 | | -} |
241 | | - |
242 | | -event queue::submit_impl_and_postprocess(std::function<void(handler &)> CGH, |
243 | | - const detail::code_location &CodeLoc, |
244 | | - const detail::SubmitPostProcessF &) { |
245 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, true); |
246 | | -} |
247 | | -event queue::submit_impl_and_postprocess(std::function<void(handler &)> CGH, |
248 | | - const detail::code_location &CodeLoc, |
249 | | - const detail::SubmitPostProcessF &, |
250 | | - bool IsTopCodeLoc) { |
251 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, IsTopCodeLoc); |
252 | | -} |
253 | | - |
254 | | -event queue::submit_impl_and_postprocess(std::function<void(handler &)> CGH, |
255 | | - [[maybe_unused]] queue SecondQueue, |
256 | | - const detail::code_location &CodeLoc, |
257 | | - const detail::SubmitPostProcessF &) { |
258 | | - return impl->submit(CGH, CodeLoc, true); |
259 | | -} |
260 | | -event queue::submit_impl_and_postprocess(std::function<void(handler &)> CGH, |
261 | | - [[maybe_unused]] queue SecondQueue, |
262 | | - const detail::code_location &CodeLoc, |
263 | | - const detail::SubmitPostProcessF &, |
264 | | - bool IsTopCodeLoc) { |
265 | | - return impl->submit(CGH, CodeLoc, IsTopCodeLoc); |
266 | | -} |
267 | | - |
268 | | -event queue::submit_with_event_impl(std::function<void(handler &)> CGH, |
269 | | - const detail::SubmissionInfo &SubmitInfo, |
270 | | - const detail::code_location &CodeLoc, |
271 | | - bool IsTopCodeLoc) { |
272 | | - return impl->submit_with_event(CGH, SubmitInfo, CodeLoc, IsTopCodeLoc); |
273 | | -} |
274 | | - |
275 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
276 | | - const detail::SubmissionInfo &SubmitInfo, |
277 | | - const detail::code_location &CodeLoc, |
278 | | - bool IsTopCodeLoc) { |
279 | | - impl->submit_without_event(CGH, SubmitInfo, CodeLoc, IsTopCodeLoc); |
280 | | -} |
281 | | - |
282 | | -event queue::submit_with_event_impl(const detail::type_erased_cgfo_ty &CGH, |
283 | | - const detail::SubmissionInfo &SubmitInfo, |
284 | | - const detail::code_location &CodeLoc, |
285 | | - bool IsTopCodeLoc) { |
286 | | - detail::v1::SubmissionInfo SI{SubmitInfo}; |
287 | | - return impl->submit_with_event(CGH, SI, CodeLoc, IsTopCodeLoc); |
288 | | -} |
289 | | - |
290 | | -void queue::submit_without_event_impl(const detail::type_erased_cgfo_ty &CGH, |
291 | | - const detail::SubmissionInfo &SubmitInfo, |
292 | | - const detail::code_location &CodeLoc, |
293 | | - bool IsTopCodeLoc) { |
294 | | - detail::v1::SubmissionInfo SI{SubmitInfo}; |
295 | | - impl->submit_without_event(CGH, SI, CodeLoc, IsTopCodeLoc); |
296 | | -} |
297 | | - |
298 | | -event queue::submit_with_event_impl( |
299 | | - const detail::type_erased_cgfo_ty &CGH, |
300 | | - const detail::v1::SubmissionInfo &SubmitInfo, |
301 | | - const detail::code_location &CodeLoc, bool IsTopCodeLoc) { |
302 | | - return std::as_const(*this).submit_with_event_impl(CGH, SubmitInfo, CodeLoc, |
303 | | - IsTopCodeLoc); |
304 | | -} |
305 | | - |
306 | | -void queue::submit_without_event_impl( |
307 | | - const detail::type_erased_cgfo_ty &CGH, |
308 | | - const detail::v1::SubmissionInfo &SubmitInfo, |
309 | | - const detail::code_location &CodeLoc, bool IsTopCodeLoc) { |
310 | | - std::as_const(*this).submit_without_event_impl(CGH, SubmitInfo, CodeLoc, |
311 | | - IsTopCodeLoc); |
312 | | -} |
313 | | -#endif // __INTEL_PREVIEW_BREAKING_CHANGES |
314 | | - |
315 | 166 | event queue::submit_with_event_impl( |
316 | 167 | const detail::type_erased_cgfo_ty &CGH, |
317 | 168 | const detail::v1::SubmissionInfo &SubmitInfo, |
|
0 commit comments