@@ -740,33 +740,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
740740 TlsCodeLocCapture.query ());
741741 }
742742
743- // /// Experimental implementation of prefetch supporting bidirectional USM
744- // data
745- // /// migration: Provides hints to the runtime library that data should be
746- // made
747- // /// available on a device earlier than Unified Shared Memory would
748- // normally
749- // /// require it to be available.
750- // ///
751- // /// \param Ptr is a USM pointer to the memory to be prefetched to the
752- // device.
753- // /// \param Count is a number of bytes to be prefetched.
754- // /// \param Direction indicates the direction to prefetch data to/from.
755- // /// \return an event representing prefetch operation.
756- // event ext_oneapi_prefetch_exp(
757- // const void *Ptr, size_t Count,
758- // ext::oneapi::experimental::migration_direction Direction =
759- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
760- // const detail::code_location &CodeLoc =
761- // detail::code_location::current()) {
762- // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
763- // return submit(
764- // [=](handler &CGH) {
765- // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
766- // },
767- // TlsCodeLocCapture.query());
768- // }
769-
770743 // / Provides hints to the runtime library that data should be made available
771744 // / on a device earlier than Unified Shared Memory would normally require it
772745 // / to be available.
@@ -787,34 +760,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
787760 TlsCodeLocCapture.query ());
788761 }
789762
790- // /// Experimental implementation of prefetch supporting bidirectional USM
791- // data
792- // /// migration: Provides hints to the runtime library that data should be
793- // made
794- // /// available on a device earlier than Unified Shared Memory would
795- // normally
796- // /// require it to be available.
797- // ///
798- // /// \param Ptr is a USM pointer to the memory to be prefetched to the
799- // device.
800- // /// \param Count is a number of bytes to be prefetched.
801- // /// \param DepEvent is an event that specifies the kernel dependencies.
802- // /// \param Direction indicates the direction to prefetch data to/from.
803- // /// \return an event representing prefetch operation.
804- // event ext_oneapi_prefetch_exp(
805- // const void *Ptr, size_t Count, event DepEvent,
806- // ext::oneapi::experimental::migration_direction Direction =
807- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
808- // const detail::code_location &CodeLoc =
809- // detail::code_location::current()) {
810- // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
811- // return submit(
812- // [=](handler &CGH) {
813- // CGH.depends_on(DepEvent);
814- // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
815- // },
816- // TlsCodeLocCapture.query());
817- // }
818763
819764 // / Provides hints to the runtime library that data should be made available
820765 // / on a device earlier than Unified Shared Memory would normally require it
@@ -837,36 +782,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
837782 TlsCodeLocCapture.query ());
838783 }
839784
840- // /// Experimental implementation of prefetch supporting bidirectional USM
841- // data
842- // /// migration: Provides hints to the runtime library that data should be
843- // made
844- // /// available on a device earlier than Unified Shared Memory would
845- // normally
846- // /// require it to be available.
847- // ///
848- // /// \param Ptr is a USM pointer to the memory to be prefetched to the
849- // device.
850- // /// \param Count is a number of bytes to be prefetched.
851- // /// \param DepEvents is a vector of events that specifies the kernel
852- // /// dependencies.
853- // /// \param Direction indicates the direction to prefetch data to/from.
854- // /// \return an event representing prefetch operation.
855- // event ext_oneapi_prefetch_exp(
856- // const void *Ptr, size_t Count, const std::vector<event> &DepEvents,
857- // ext::oneapi::experimental::migration_direction Direction =
858- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
859- // const detail::code_location &CodeLoc =
860- // detail::code_location::current()) {
861- // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
862- // return submit(
863- // [=](handler &CGH) {
864- // CGH.depends_on(DepEvents);
865- // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
866- // },
867- // TlsCodeLocCapture.query());
868- // }
869-
870785 // / Copies data from one 2D memory region to another, both pointed by
871786 // / USM pointers.
872787 // / No operations is done if \param Width or \param Height is zero. An
0 commit comments