diff --git a/sycl/include/CL/sycl/queue.hpp b/sycl/include/CL/sycl/queue.hpp index 3e90f280e97d2..4026d42c2d978 100644 --- a/sycl/include/CL/sycl/queue.hpp +++ b/sycl/include/CL/sycl/queue.hpp @@ -258,10 +258,11 @@ class __SYCL_EXPORT queue { auto PostProcess = [this, &CodeLoc](bool IsKernel, bool KernelUsesAssert, event &E) { if (IsKernel && !device_has(aspect::ext_oneapi_native_assert) && - KernelUsesAssert) { + KernelUsesAssert && !device_has(aspect::accelerator)) { // __devicelib_assert_fail isn't supported by Device-side Runtime // Linking against fallback impl of __devicelib_assert_fail is // performed by program manager class + // Fallback assert isn't supported for FPGA submitAssertCapture(*this, E, /* SecondaryQueue = */ nullptr, CodeLoc); } @@ -299,7 +300,7 @@ class __SYCL_EXPORT queue { auto PostProcess = [this, &SecondaryQueue, &CodeLoc]( bool IsKernel, bool KernelUsesAssert, event &E) { if (IsKernel && !device_has(aspect::ext_oneapi_native_assert) && - KernelUsesAssert) { + KernelUsesAssert && !device_has(aspect::accelerator)) { // Only secondary queues on devices need to be added to the assert // capture. // TODO: Handle case where primary queue is host but the secondary @@ -309,6 +310,7 @@ class __SYCL_EXPORT queue { // __devicelib_assert_fail isn't supported by Device-side Runtime // Linking against fallback impl of __devicelib_assert_fail is // performed by program manager class + // Fallback assert isn't supported for FPGA submitAssertCapture(*this, E, DeviceSecondaryQueue, CodeLoc); } };