|
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 | | -std::shared_ptr<detail::queue_impl> &SubmissionInfo::SecondaryQueue() { |
29 | | - return impl->MSecondaryQueue; |
30 | | -} |
31 | | - |
32 | | -const std::shared_ptr<detail::queue_impl> & |
33 | | -SubmissionInfo::SecondaryQueue() const { |
34 | | - return impl->MSecondaryQueue; |
35 | | -} |
36 | | - |
37 | | -ext::oneapi::experimental::event_mode_enum &SubmissionInfo::EventMode() { |
38 | | - return impl->MEventMode; |
39 | | -} |
40 | | - |
41 | | -const ext::oneapi::experimental::event_mode_enum & |
42 | | -SubmissionInfo::EventMode() const { |
43 | | - return impl->MEventMode; |
44 | | -} |
45 | | -} // namespace detail |
46 | | - |
47 | | -#endif // __INTEL_PREVIEW_BREAKING_CHANGES |
48 | | - |
49 | 23 | queue::queue(const context &SyclContext, const device_selector &DeviceSelector, |
50 | 24 | const async_handler &AsyncHandler, const property_list &PropList) { |
51 | 25 | const std::vector<device> Devs = SyclContext.get_devices(); |
@@ -189,87 +163,6 @@ event queue::mem_advise(const void *Ptr, size_t Length, int Advice, |
189 | 163 | /*CallerNeedsEvent=*/true); |
190 | 164 | } |
191 | 165 |
|
192 | | -#ifndef __INTEL_PREVIEW_BREAKING_CHANGES |
193 | | -/// TODO: Unused. Remove these when ABI-break window is open. |
194 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
195 | | - const detail::code_location &CodeLoc) { |
196 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, true); |
197 | | -} |
198 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
199 | | - const detail::code_location &CodeLoc, |
200 | | - bool IsTopCodeLoc) { |
201 | | - return submit_with_event_impl(std::move(CGH), {}, CodeLoc, IsTopCodeLoc); |
202 | | -} |
203 | | - |
204 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
205 | | - [[maybe_unused]] queue SecondQueue, |
206 | | - const detail::code_location &CodeLoc) { |
207 | | - return impl->submit(CGH, CodeLoc, true); |
208 | | -} |
209 | | -event queue::submit_impl(std::function<void(handler &)> CGH, |
210 | | - [[maybe_unused]] queue SecondQueue, |
211 | | - const detail::code_location &CodeLoc, |
212 | | - bool IsTopCodeLoc) { |
213 | | - return impl->submit(CGH, CodeLoc, IsTopCodeLoc); |
214 | | -} |
215 | | - |
216 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
217 | | - const detail::code_location &CodeLoc) { |
218 | | - submit_without_event_impl(std::move(CGH), {}, CodeLoc, true); |
219 | | -} |
220 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
221 | | - const detail::code_location &CodeLoc, |
222 | | - bool IsTopCodeLoc) { |
223 | | - submit_without_event_impl(std::move(CGH), {}, CodeLoc, IsTopCodeLoc); |
224 | | -} |
225 | | - |
226 | | -event queue::submit_with_event_impl(std::function<void(handler &)> CGH, |
227 | | - const detail::SubmissionInfo &SubmitInfo, |
228 | | - const detail::code_location &CodeLoc, |
229 | | - bool IsTopCodeLoc) { |
230 | | - return impl->submit_with_event(CGH, SubmitInfo, CodeLoc, IsTopCodeLoc); |
231 | | -} |
232 | | - |
233 | | -void queue::submit_without_event_impl(std::function<void(handler &)> CGH, |
234 | | - const detail::SubmissionInfo &SubmitInfo, |
235 | | - const detail::code_location &CodeLoc, |
236 | | - bool IsTopCodeLoc) { |
237 | | - impl->submit_without_event(CGH, SubmitInfo, CodeLoc, IsTopCodeLoc); |
238 | | -} |
239 | | - |
240 | | -event queue::submit_with_event_impl(const detail::type_erased_cgfo_ty &CGH, |
241 | | - const detail::SubmissionInfo &SubmitInfo, |
242 | | - const detail::code_location &CodeLoc, |
243 | | - bool IsTopCodeLoc) { |
244 | | - detail::v1::SubmissionInfo SI{SubmitInfo}; |
245 | | - return impl->submit_with_event(CGH, SI, CodeLoc, IsTopCodeLoc); |
246 | | -} |
247 | | - |
248 | | -void queue::submit_without_event_impl(const detail::type_erased_cgfo_ty &CGH, |
249 | | - const detail::SubmissionInfo &SubmitInfo, |
250 | | - const detail::code_location &CodeLoc, |
251 | | - bool IsTopCodeLoc) { |
252 | | - detail::v1::SubmissionInfo SI{SubmitInfo}; |
253 | | - impl->submit_without_event(CGH, SI, CodeLoc, IsTopCodeLoc); |
254 | | -} |
255 | | - |
256 | | -event queue::submit_with_event_impl( |
257 | | - const detail::type_erased_cgfo_ty &CGH, |
258 | | - const detail::v1::SubmissionInfo &SubmitInfo, |
259 | | - const detail::code_location &CodeLoc, bool IsTopCodeLoc) { |
260 | | - return std::as_const(*this).submit_with_event_impl(CGH, SubmitInfo, CodeLoc, |
261 | | - IsTopCodeLoc); |
262 | | -} |
263 | | - |
264 | | -void queue::submit_without_event_impl( |
265 | | - const detail::type_erased_cgfo_ty &CGH, |
266 | | - const detail::v1::SubmissionInfo &SubmitInfo, |
267 | | - const detail::code_location &CodeLoc, bool IsTopCodeLoc) { |
268 | | - std::as_const(*this).submit_without_event_impl(CGH, SubmitInfo, CodeLoc, |
269 | | - IsTopCodeLoc); |
270 | | -} |
271 | | -#endif // __INTEL_PREVIEW_BREAKING_CHANGES |
272 | | - |
273 | 166 | event queue::submit_with_event_impl( |
274 | 167 | const detail::type_erased_cgfo_ty &CGH, |
275 | 168 | const detail::v1::SubmissionInfo &SubmitInfo, |
|
0 commit comments