@@ -465,32 +465,9 @@ class __SYCL_EXPORT handler {
465465 // / Constructs SYCL handler from queue.
466466 // /
467467 // / \param Queue is a SYCL queue.
468- // / \param IsHost indicates if this handler is created for SYCL host device.
469- // / TODO: Unused. Remove with ABI break.
470- handler (std::shared_ptr<detail::queue_impl> Queue, bool /* Unused*/ );
471-
472- // / Constructs SYCL handler from the associated queue and the submission's
473- // / primary and secondary queue.
474- // /
475- // / \param Queue is a SYCL queue. This is equal to either PrimaryQueue or
476- // / SecondaryQueue.
477- // / \param PrimaryQueue is the primary SYCL queue of the submission.
478- // / \param SecondaryQueue is the secondary SYCL queue of the submission. This
479- // / is null if no secondary queue is associated with the submission.
480- // / TODO: Unused. Remove with ABI break.
481- handler (std::shared_ptr<detail::queue_impl> Queue,
482- std::shared_ptr<detail::queue_impl> PrimaryQueue,
483- std::shared_ptr<detail::queue_impl> SecondaryQueue,
484- bool /* Unused */ );
485-
486- // / Constructs SYCL handler from queue.
487- // /
488- // / \param Queue is a SYCL queue.
489- // / \param IsHost indicates if this handler is created for SYCL host device.
490468 // / \param CallerNeedsEvent indicates if the event resulting from this handler
491469 // / is needed by the caller.
492- handler (std::shared_ptr<detail::queue_impl> Queue,
493- bool /* ABI break: remove */ , bool CallerNeedsEvent);
470+ handler (std::shared_ptr<detail::queue_impl> Queue, bool CallerNeedsEvent);
494471
495472 // / Constructs SYCL handler from the associated queue and the submission's
496473 // / primary and secondary queue.
@@ -500,13 +477,12 @@ class __SYCL_EXPORT handler {
500477 // / \param PrimaryQueue is the primary SYCL queue of the submission.
501478 // / \param SecondaryQueue is the secondary SYCL queue of the submission. This
502479 // / is null if no secondary queue is associated with the submission.
503- // / \param IsHost indicates if this handler is created for SYCL host device.
504480 // / \param CallerNeedsEvent indicates if the event resulting from this handler
505481 // / is needed by the caller.
506482 handler (std::shared_ptr<detail::queue_impl> Queue,
507483 std::shared_ptr<detail::queue_impl> PrimaryQueue,
508484 std::shared_ptr<detail::queue_impl> SecondaryQueue,
509- bool /* ABI break: remove */ , bool CallerNeedsEvent);
485+ bool CallerNeedsEvent);
510486
511487 // / Constructs SYCL handler from Graph.
512488 // /
@@ -652,9 +628,6 @@ class __SYCL_EXPORT handler {
652628
653629 ~handler () = default ;
654630
655- // TODO: Private and unusued. Remove when ABI break is allowed.
656- bool is_host () { return false ; }
657-
658631#ifdef __SYCL_DEVICE_ONLY__
659632 // In device compilation accessor isn't inherited from host base classes, so
660633 // can't detect by it. Since we don't expect it to be ever called in device
@@ -784,12 +757,6 @@ class __SYCL_EXPORT handler {
784757 &DynamicParamBase,
785758 int ArgIndex);
786759
787- // TODO: Unusued. Remove when ABI break is allowed.
788- void verifyKernelInvoc (const kernel &Kernel) {
789- std::ignore = Kernel;
790- return ;
791- }
792-
793760 /* The kernel passed to StoreLambda can take an id, an item or an nd_item as
794761 * its argument. Since esimd plugin directly invokes the kernel (doesn’t use
795762 * piKernelSetArg), the kernel argument type must be known to the plugin.
@@ -1110,7 +1077,6 @@ class __SYCL_EXPORT handler {
11101077 // /
11111078 // / \param Src is a source SYCL accessor.
11121079 // / \param Dst is a destination SYCL accessor.
1113- // ABI break: to remove whole method
11141080 template <typename TSrc, int DimSrc, access::mode ModeSrc,
11151081 access::target TargetSrc, typename TDst, int DimDst,
11161082 access::mode ModeDst, access::target TargetDst,
@@ -1121,81 +1087,6 @@ class __SYCL_EXPORT handler {
11211087 return false ;
11221088 }
11231089
1124- #ifndef __SYCL_DEVICE_ONLY__
1125- // ABI break: to remove whole method
1126- // / Copies the content of memory object accessed by Src into the memory
1127- // / pointed by Dst.
1128- // /
1129- // / \param Src is a source SYCL accessor.
1130- // / \param Dst is a pointer to destination memory.
1131- template <typename TSrc, typename TDst, int Dim, access::mode AccMode,
1132- access::target AccTarget, access::placeholder IsPH>
1133- std::enable_if_t <(Dim > 0 )>
1134- copyAccToPtrHost (accessor<TSrc, Dim, AccMode, AccTarget, IsPH> Src,
1135- TDst *Dst) {
1136- range<Dim> Range = Src.get_range ();
1137- parallel_for<__copyAcc2Ptr<TSrc, TDst, Dim, AccMode, AccTarget, IsPH>>(
1138- Range, [=](id<Dim> Index) {
1139- const size_t LinearIndex = detail::getLinearIndex (Index, Range);
1140- using TSrcNonConst = typename std::remove_const_t <TSrc>;
1141- (reinterpret_cast <TSrcNonConst *>(Dst))[LinearIndex] = Src[Index];
1142- });
1143- }
1144-
1145- // ABI break: to remove whole method
1146- // / Copies 1 element accessed by 0-dimensional accessor Src into the memory
1147- // / pointed by Dst.
1148- // /
1149- // / \param Src is a source SYCL accessor.
1150- // / \param Dst is a pointer to destination memory.
1151- template <typename TSrc, typename TDst, int Dim, access::mode AccMode,
1152- access::target AccTarget, access::placeholder IsPH>
1153- std::enable_if_t <Dim == 0 >
1154- copyAccToPtrHost (accessor<TSrc, Dim, AccMode, AccTarget, IsPH> Src,
1155- TDst *Dst) {
1156- single_task<__copyAcc2Ptr<TSrc, TDst, Dim, AccMode, AccTarget, IsPH>>(
1157- [=]() {
1158- using TSrcNonConst = typename std::remove_const_t <TSrc>;
1159- *(reinterpret_cast <TSrcNonConst *>(Dst)) = *(Src.get_pointer ());
1160- });
1161- }
1162-
1163- // ABI break: to remove whole method
1164- // / Copies the memory pointed by Src into the memory accessed by Dst.
1165- // /
1166- // / \param Src is a pointer to source memory.
1167- // / \param Dst is a destination SYCL accessor.
1168- template <typename TSrc, typename TDst, int Dim, access::mode AccMode,
1169- access::target AccTarget, access::placeholder IsPH>
1170- std::enable_if_t <(Dim > 0 )>
1171- copyPtrToAccHost (TSrc *Src,
1172- accessor<TDst, Dim, AccMode, AccTarget, IsPH> Dst) {
1173- range<Dim> Range = Dst.get_range ();
1174- parallel_for<__copyPtr2Acc<TSrc, TDst, Dim, AccMode, AccTarget, IsPH>>(
1175- Range, [=](id<Dim> Index) {
1176- const size_t LinearIndex = detail::getLinearIndex (Index, Range);
1177- Dst[Index] = (reinterpret_cast <const TDst *>(Src))[LinearIndex];
1178- });
1179- }
1180-
1181- // ABI break: to remove whole method
1182- // / Copies 1 element pointed by Src to memory accessed by 0-dimensional
1183- // / accessor Dst.
1184- // /
1185- // / \param Src is a pointer to source memory.
1186- // / \param Dst is a destination SYCL accessor.
1187- template <typename TSrc, typename TDst, int Dim, access::mode AccMode,
1188- access::target AccTarget, access::placeholder IsPH>
1189- std::enable_if_t <Dim == 0 >
1190- copyPtrToAccHost (TSrc *Src,
1191- accessor<TDst, Dim, AccMode, AccTarget, IsPH> Dst) {
1192- single_task<__copyPtr2Acc<TSrc, TDst, Dim, AccMode, AccTarget, IsPH>>(
1193- [=]() {
1194- *(Dst.get_pointer ()) = *(reinterpret_cast <const TDst *>(Src));
1195- });
1196- }
1197- #endif // __SYCL_DEVICE_ONLY__
1198-
11991090 constexpr static bool isConstOrGlobal (access::target AccessTarget) {
12001091 return AccessTarget == access::target::device ||
12011092 AccessTarget == access::target::constant_buffer;
@@ -3426,8 +3317,6 @@ class __SYCL_EXPORT handler {
34263317 // / Storage for the CG created when handling graph nodes added explicitly.
34273318 std::unique_ptr<detail::CG> MGraphNodeCG;
34283319
3429- bool MIsHost = false ; // ABI break: to remove
3430-
34313320 detail::code_location MCodeLoc = {};
34323321 bool MIsFinalized = false ;
34333322 event MLastEvent;
0 commit comments