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