Skip to content

Commit 86e9dcb

Browse files
[SYCL][NFC] Reintroduce missing Windows symbols (#6830)
#6685 unintentionally caused the windows library to lose symbols for handler::verifyKernelInvoc and handler::is_host. This patch introduces these as unused members to avoid the patch being ABI-breaking. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent f7ffbf4 commit 86e9dcb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sycl/include/sycl/handler.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,9 @@ class __SYCL_EXPORT handler {
468468

469469
~handler() = default;
470470

471+
// TODO: Private and unusued. Remove when ABI break is allowed.
472+
bool is_host() { return MIsHost; }
473+
471474
#ifdef __SYCL_DEVICE_ONLY__
472475
// In device compilation accessor isn't inherited from AccessorBaseHost, so
473476
// can't detect by it. Since we don't expect it to be ever called in device
@@ -541,6 +544,12 @@ class __SYCL_EXPORT handler {
541544
sizeof(sampler), ArgIndex);
542545
}
543546

547+
// TODO: Unusued. Remove when ABI break is allowed.
548+
void verifyKernelInvoc(const kernel &Kernel) {
549+
std::ignore = Kernel;
550+
return;
551+
}
552+
544553
/* The kernel passed to StoreLambda can take an id, an item or an nd_item as
545554
* its argument. Since esimd plugin directly invokes the kernel (doesn’t use
546555
* piKernelSetArg), the kernel argument type must be known to the plugin.

0 commit comments

Comments
 (0)