Skip to content

Commit 080419e

Browse files
author
sergei
authored
[SYCL] Disable submission of AssertInfoCopier for FPGA (#4780)
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent 0b8df3b commit 080419e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sycl/include/CL/sycl/queue.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,11 @@ class __SYCL_EXPORT queue {
258258
auto PostProcess = [this, &CodeLoc](bool IsKernel, bool KernelUsesAssert,
259259
event &E) {
260260
if (IsKernel && !device_has(aspect::ext_oneapi_native_assert) &&
261-
KernelUsesAssert) {
261+
KernelUsesAssert && !device_has(aspect::accelerator)) {
262262
// __devicelib_assert_fail isn't supported by Device-side Runtime
263263
// Linking against fallback impl of __devicelib_assert_fail is
264264
// performed by program manager class
265+
// Fallback assert isn't supported for FPGA
265266
submitAssertCapture(*this, E, /* SecondaryQueue = */ nullptr,
266267
CodeLoc);
267268
}
@@ -299,7 +300,7 @@ class __SYCL_EXPORT queue {
299300
auto PostProcess = [this, &SecondaryQueue, &CodeLoc](
300301
bool IsKernel, bool KernelUsesAssert, event &E) {
301302
if (IsKernel && !device_has(aspect::ext_oneapi_native_assert) &&
302-
KernelUsesAssert) {
303+
KernelUsesAssert && !device_has(aspect::accelerator)) {
303304
// Only secondary queues on devices need to be added to the assert
304305
// capture.
305306
// TODO: Handle case where primary queue is host but the secondary
@@ -309,6 +310,7 @@ class __SYCL_EXPORT queue {
309310
// __devicelib_assert_fail isn't supported by Device-side Runtime
310311
// Linking against fallback impl of __devicelib_assert_fail is
311312
// performed by program manager class
313+
// Fallback assert isn't supported for FPGA
312314
submitAssertCapture(*this, E, DeviceSecondaryQueue, CodeLoc);
313315
}
314316
};

0 commit comments

Comments
 (0)