@@ -745,27 +745,32 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
745
745
TlsCodeLocCapture.query ());
746
746
}
747
747
748
- // /// Experimental implementation of prefetch supporting bidirectional USM data
749
- // /// migration: Provides hints to the runtime library that data should be made
750
- // /// available on a device earlier than Unified Shared Memory would normally
751
- // /// require it to be available.
752
- // ///
753
- // /// \param Ptr is a USM pointer to the memory to be prefetched to the device.
754
- // /// \param Count is a number of bytes to be prefetched.
755
- // /// \param Direction indicates the direction to prefetch data to/from.
756
- // /// \return an event representing prefetch operation.
757
- // event ext_oneapi_prefetch_exp(
758
- // const void *Ptr, size_t Count,
759
- // ext::oneapi::experimental::migration_direction Direction =
760
- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
761
- // const detail::code_location &CodeLoc = 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
- // }
748
+ // /// Experimental implementation of prefetch supporting bidirectional USM
749
+ // data
750
+ // /// migration: Provides hints to the runtime library that data should be
751
+ // made
752
+ // /// available on a device earlier than Unified Shared Memory would
753
+ // normally
754
+ // /// require it to be available.
755
+ // ///
756
+ // /// \param Ptr is a USM pointer to the memory to be prefetched to the
757
+ // device.
758
+ // /// \param Count is a number of bytes to be prefetched.
759
+ // /// \param Direction indicates the direction to prefetch data to/from.
760
+ // /// \return an event representing prefetch operation.
761
+ // event ext_oneapi_prefetch_exp(
762
+ // const void *Ptr, size_t Count,
763
+ // ext::oneapi::experimental::migration_direction Direction =
764
+ // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
765
+ // const detail::code_location &CodeLoc =
766
+ // detail::code_location::current()) {
767
+ // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
768
+ // return submit(
769
+ // [=](handler &CGH) {
770
+ // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
771
+ // },
772
+ // TlsCodeLocCapture.query());
773
+ // }
769
774
770
775
// / Provides hints to the runtime library that data should be made available
771
776
// / on a device earlier than Unified Shared Memory would normally require it
@@ -787,29 +792,34 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
787
792
TlsCodeLocCapture.query ());
788
793
}
789
794
790
- // /// Experimental implementation of prefetch supporting bidirectional USM data
791
- // /// migration: Provides hints to the runtime library that data should be made
792
- // /// available on a device earlier than Unified Shared Memory would normally
793
- // /// require it to be available.
794
- // ///
795
- // /// \param Ptr is a USM pointer to the memory to be prefetched to the device.
796
- // /// \param Count is a number of bytes to be prefetched.
797
- // /// \param DepEvent is an event that specifies the kernel dependencies.
798
- // /// \param Direction indicates the direction to prefetch data to/from.
799
- // /// \return an event representing prefetch operation.
800
- // event ext_oneapi_prefetch_exp(
801
- // const void *Ptr, size_t Count, event DepEvent,
802
- // ext::oneapi::experimental::migration_direction Direction =
803
- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
804
- // const detail::code_location &CodeLoc = detail::code_location::current()) {
805
- // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
806
- // return submit(
807
- // [=](handler &CGH) {
808
- // CGH.depends_on(DepEvent);
809
- // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
810
- // },
811
- // TlsCodeLocCapture.query());
812
- // }
795
+ // /// Experimental implementation of prefetch supporting bidirectional USM
796
+ // data
797
+ // /// migration: Provides hints to the runtime library that data should be
798
+ // made
799
+ // /// available on a device earlier than Unified Shared Memory would
800
+ // normally
801
+ // /// require it to be available.
802
+ // ///
803
+ // /// \param Ptr is a USM pointer to the memory to be prefetched to the
804
+ // device.
805
+ // /// \param Count is a number of bytes to be prefetched.
806
+ // /// \param DepEvent is an event that specifies the kernel dependencies.
807
+ // /// \param Direction indicates the direction to prefetch data to/from.
808
+ // /// \return an event representing prefetch operation.
809
+ // event ext_oneapi_prefetch_exp(
810
+ // const void *Ptr, size_t Count, event DepEvent,
811
+ // ext::oneapi::experimental::migration_direction Direction =
812
+ // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
813
+ // const detail::code_location &CodeLoc =
814
+ // detail::code_location::current()) {
815
+ // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
816
+ // return submit(
817
+ // [=](handler &CGH) {
818
+ // CGH.depends_on(DepEvent);
819
+ // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
820
+ // },
821
+ // TlsCodeLocCapture.query());
822
+ // }
813
823
814
824
// / Provides hints to the runtime library that data should be made available
815
825
// / on a device earlier than Unified Shared Memory would normally require it
@@ -832,30 +842,35 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
832
842
TlsCodeLocCapture.query ());
833
843
}
834
844
835
- // /// Experimental implementation of prefetch supporting bidirectional USM data
836
- // /// migration: Provides hints to the runtime library that data should be made
837
- // /// available on a device earlier than Unified Shared Memory would normally
838
- // /// require it to be available.
839
- // ///
840
- // /// \param Ptr is a USM pointer to the memory to be prefetched to the device.
841
- // /// \param Count is a number of bytes to be prefetched.
842
- // /// \param DepEvents is a vector of events that specifies the kernel
843
- // /// dependencies.
844
- // /// \param Direction indicates the direction to prefetch data to/from.
845
- // /// \return an event representing prefetch operation.
846
- // event ext_oneapi_prefetch_exp(
847
- // const void *Ptr, size_t Count, const std::vector<event> &DepEvents,
848
- // ext::oneapi::experimental::migration_direction Direction =
849
- // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
850
- // const detail::code_location &CodeLoc = detail::code_location::current()) {
851
- // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
852
- // return submit(
853
- // [=](handler &CGH) {
854
- // CGH.depends_on(DepEvents);
855
- // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
856
- // },
857
- // TlsCodeLocCapture.query());
858
- // }
845
+ // /// Experimental implementation of prefetch supporting bidirectional USM
846
+ // data
847
+ // /// migration: Provides hints to the runtime library that data should be
848
+ // made
849
+ // /// available on a device earlier than Unified Shared Memory would
850
+ // normally
851
+ // /// require it to be available.
852
+ // ///
853
+ // /// \param Ptr is a USM pointer to the memory to be prefetched to the
854
+ // device.
855
+ // /// \param Count is a number of bytes to be prefetched.
856
+ // /// \param DepEvents is a vector of events that specifies the kernel
857
+ // /// dependencies.
858
+ // /// \param Direction indicates the direction to prefetch data to/from.
859
+ // /// \return an event representing prefetch operation.
860
+ // event ext_oneapi_prefetch_exp(
861
+ // const void *Ptr, size_t Count, const std::vector<event> &DepEvents,
862
+ // ext::oneapi::experimental::migration_direction Direction =
863
+ // ext::oneapi::experimental::migration_direction::HOST_TO_DEVICE,
864
+ // const detail::code_location &CodeLoc =
865
+ // detail::code_location::current()) {
866
+ // detail::tls_code_loc_t TlsCodeLocCapture(CodeLoc);
867
+ // return submit(
868
+ // [=](handler &CGH) {
869
+ // CGH.depends_on(DepEvents);
870
+ // CGH.ext_oneapi_prefetch_exp(Ptr, Count, Direction);
871
+ // },
872
+ // TlsCodeLocCapture.query());
873
+ // }
859
874
860
875
// / Copies data from one 2D memory region to another, both pointed by
861
876
// / USM pointers.
0 commit comments