From cae1ece7f2fd0469a997adc3c9fdbabdaeddef62 Mon Sep 17 00:00:00 2001 From: Sergey Kanaev Date: Mon, 18 Oct 2021 20:01:48 +0300 Subject: [PATCH] [SYCL] Disable submission of AssertInfoCopier for FPGA Signed-off-by: Sergey Kanaev --- sycl/include/CL/sycl/queue.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sycl/include/CL/sycl/queue.hpp b/sycl/include/CL/sycl/queue.hpp index 1bef957e87679..0fca762595886 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); } };