File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -363,17 +363,14 @@ which is enqueued as dependent on user's one. The flag state is checked later
363
363
in host-task. This is achieved with approximately the following changes:
364
364
365
365
```c++
366
- #ifndef NDEBUG
367
366
class AssertFlagCopier;
368
367
#ifdef __SYCL_DEVICE_ONLY__
369
368
int __devicelib_assert_read(void);
370
369
#endif
371
- #endif
372
370
373
371
class queue {
374
372
template <typename T> event submit(T CGF) {
375
373
event Event = submit_impl(CGF);
376
- #ifndef NDEBUG
377
374
std::string KernelName = /* get kernel name from calls to parallel_for, etc. */;
378
375
// assert required
379
376
if (!get_device()->assert_fail_supported() && isAssertUsed(KernelName)) {
@@ -409,7 +406,6 @@ class queue {
409
406
});
410
407
});
411
408
}
412
- #endif
413
409
return Event;
414
410
}
415
411
};
You can’t perform that action at this time.
0 commit comments