@@ -245,16 +245,10 @@ class node_impl : public std::enable_shared_from_this<node_impl> {
245
245
return createCGCopy<sycl::detail::CGPrefetchUSM>();
246
246
#ifdef __INTEL_PREVIEW_BREAKING_CHANGES
247
247
case sycl::detail::CGType::PrefetchUSMExp:
248
- throw sycl::exception (sycl::make_error_code (errc::feature_not_supported),
249
- " Prefetch as a part of the experimental enqueue "
250
- " function extension is currently not supported by "
251
- " SYCL Graph extension." );
252
- // return createCGCopy<sycl::detail::CGPrefetchUSMExp>();
248
+ return createCGCopy<sycl::detail::CGPrefetchUSMExp>();
253
249
#else
254
250
case sycl::detail::CGType::PrefetchUSMExpD2H:
255
- throw sycl::exception (sycl::make_error_code (errc::feature_not_supported),
256
- " Prefetch from device to host is currently not "
257
- " supported by SYCL Graph extension." );
251
+ return createCGCopy<sycl::detail::CGPrefetchUSMExpD2H>();
258
252
#endif
259
253
case sycl::detail::CGType::AdviseUSM:
260
254
return createCGCopy<sycl::detail::CGAdviseUSM>();
@@ -649,6 +643,31 @@ class node_impl : public std::enable_shared_from_this<node_impl> {
649
643
<< " Length: " << Prefetch->getLength () << " \\ n" ;
650
644
}
651
645
break ;
646
+ #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
647
+ case sycl::detail::CGType::PrefetchUSMExp:
648
+ Stream << " CGPrefetchUSMExp \\ n" ;
649
+ if (Verbose) {
650
+ sycl::detail::CGPrefetchUSMExp *Prefetch =
651
+ static_cast <sycl::detail::CGPrefetchUSMExp *>(MCommandGroup.get ());
652
+ Stream << " Dst: " << Prefetch->getDst ()
653
+ << " Length: " << Prefetch->getLength () << " Type: "
654
+ << sycl::ext::oneapi::experimental::prefetchTypeToString (
655
+ Prefetch->getPrefetchType ())
656
+ << " \\ n" ;
657
+ }
658
+ break ;
659
+ #else
660
+ case sycl::detail::CGType::PrefetchUSMExpD2H:
661
+ Stream << " CGPrefetchUSM (Experimental, Device-To-Host) \\ n" ;
662
+ if (Verbose) {
663
+ sycl::detail::CGPrefetchUSMExpD2H *Prefetch =
664
+ static_cast <sycl::detail::CGPrefetchUSMExpD2H *>(
665
+ MCommandGroup.get ());
666
+ Stream << " Dst: " << Prefetch->getDst ()
667
+ << " Length: " << Prefetch->getLength () << " \\ n" ;
668
+ }
669
+ break ;
670
+ #endif
652
671
case sycl::detail::CGType::AdviseUSM:
653
672
Stream << " CGAdviseUSM \\ n" ;
654
673
if (Verbose) {
0 commit comments