File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -233,10 +233,11 @@ class __SYCL_EXPORT queue {
233
233
const detail::code_location &CodeLoc = detail::code_location::current()
234
234
#endif
235
235
) {
236
- #ifdef DISABLE_SYCL_INSTRUMENTATION_METADATA
237
- const detail::code_location &CodeLoc = {};
236
+ return submit ([=](handler &CGH) { CGH.barrier (); }
237
+ #ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA
238
+ , CodeLoc
238
239
#endif
239
- return submit ([=](handler &CGH) { CGH. barrier (); }, CodeLoc );
240
+ );
240
241
}
241
242
242
243
// / Prevents any commands submitted afterward to this queue from executing
@@ -255,10 +256,11 @@ class __SYCL_EXPORT queue {
255
256
const detail::code_location &CodeLoc = detail::code_location::current()
256
257
#endif
257
258
) {
258
- #ifdef DISABLE_SYCL_INSTRUMENTATION_METADATA
259
- const detail::code_location &CodeLoc = {};
259
+ return submit ([=](handler &CGH) { CGH.barrier (WaitList); }
260
+ #ifndef DISABLE_SYCL_INSTRUMENTATION_METADATA
261
+ , CodeLoc
260
262
#endif
261
- return submit ([=](handler &CGH) { CGH. barrier (WaitList); }, CodeLoc );
263
+ );
262
264
}
263
265
264
266
// / Performs a blocking wait for the completion of all enqueued tasks in the
You can’t perform that action at this time.
0 commit comments