@@ -151,7 +151,7 @@ class __SYCL_EXPORT SubmissionInfo {
151151 ext::oneapi::experimental::event_mode_enum::none;
152152};
153153
154- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
154+ // #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
155155using KernelParamDescGetterFuncPtr = detail::kernel_param_desc_t (*)(int );
156156
157157// This class is intended to store the kernel runtime information,
@@ -215,7 +215,7 @@ class __SYCL_EXPORT KernelRuntimeInfo {
215215 bool MKernelHasSpecialCaptures = true ;
216216 detail::KernelNameBasedCacheT *MKernelNameBasedCachePtr = nullptr ;
217217};
218- #endif // __INTEL_PREVIEW_BREAKING_CHANGES
218+ // #endif //__INTEL_PREVIEW_BREAKING_CHANGES
219219
220220} // namespace v1
221221} // namespace detail
@@ -3283,7 +3283,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
32833283 TlsCodeLocCapture.query ());
32843284 }
32853285
3286- #ifdef __DPCPP_ENABLE_UNFINISHED_NO_CGH_SUBMIT
32873286 // / parallel_for version with a kernel represented as a lambda + nd_range that
32883287 // / specifies global, local sizes and offset.
32893288 // /
@@ -3296,8 +3295,9 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
32963295 parallel_for (nd_range<Dims> Range, RestT &&...Rest) {
32973296 constexpr detail::code_location CodeLoc = getCodeLocation<KernelName>();
32983297 detail::tls_code_loc_t TlsCodeLocCapture (CodeLoc);
3298+ #ifdef __DPCPP_ENABLE_UNFINISHED_NO_CGH_SUBMIT
32993299 if constexpr (sizeof ...(RestT) == 1 ) {
3300- return submit_direct_with_event<KernelName, false >(
3300+ return submit_direct_with_event<KernelName>(
33013301 ext::oneapi::experimental::empty_properties_t {}, Range, Rest...);
33023302 } else {
33033303 return submit (
@@ -3306,27 +3306,15 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
33063306 },
33073307 TlsCodeLocCapture.query ());
33083308 }
3309- }
33103309#else
3311- // / parallel_for version with a kernel represented as a lambda + nd_range that
3312- // / specifies global, local sizes and offset.
3313- // /
3314- // / \param Range specifies the global and local work spaces of the kernel
3315- // / \param Rest acts as-if: "ReductionTypes&&... Reductions,
3316- // / const KernelType &KernelFunc".
3317- template <typename KernelName = detail::auto_name, int Dims,
3318- typename ... RestT>
3319- std::enable_if_t <detail::AreAllButLastReductions<RestT...>::value, event>
3320- parallel_for (nd_range<Dims> Range, RestT &&...Rest) {
3321- constexpr detail::code_location CodeLoc = getCodeLocation<KernelName>();
3322- detail::tls_code_loc_t TlsCodeLocCapture (CodeLoc);
3323- return submit (
3324- [&](handler &CGH) {
3325- CGH.template parallel_for <KernelName>(Range, Rest...);
3326- },
3327- TlsCodeLocCapture.query ());
3328- }
3310+ return submit (
3311+ [&](handler &CGH) {
3312+ CGH.template parallel_for <KernelName>(Range, Rest...);
3313+ },
3314+ TlsCodeLocCapture.query ());
33293315#endif
3316+ }
3317+
33303318 // / parallel_for version with a kernel represented as a lambda + nd_range that
33313319 // / specifies global, local sizes and offset.
33323320 // /
@@ -3832,7 +3820,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
38323820 const detail::code_location &CodeLoc,
38333821 bool IsTopCodeLoc) const ;
38343822
3835- #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
3823+ // #ifdef __INTEL_PREVIEW_BREAKING_CHANGES
38363824 event submit_direct_with_event_impl (
38373825 nd_range<1 > Range, const detail::v1::SubmissionInfo &SubmitInfo,
38383826 const detail::v1::KernelRuntimeInfo &KRInfo,
@@ -3862,7 +3850,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
38623850 nd_range<3 > Range, const detail::v1::SubmissionInfo &SubmitInfo,
38633851 const detail::v1::KernelRuntimeInfo &KRInfo,
38643852 const detail::code_location &CodeLoc, bool IsTopCodeLoc) const ;
3865- #endif // __INTEL_PREVIEW_BREAKING_CHANGES
3853+ // #endif //__INTEL_PREVIEW_BREAKING_CHANGES
38663854
38673855 // / A template-free version of submit_without_event as const member function.
38683856 void submit_without_event_impl (const detail::type_erased_cgfo_ty &CGH,
@@ -3908,7 +3896,7 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
39083896
39093897#ifdef __DPCPP_ENABLE_UNFINISHED_NO_CGH_SUBMIT
39103898
3911- template <typename KernelName = detail::auto_name, bool UseFallbackAssert,
3899+ template <typename KernelName = detail::auto_name,
39123900 typename PropertiesT, typename KernelType, int Dims>
39133901 event submit_direct_with_event (PropertiesT Props, nd_range<Dims> Range,
39143902 const KernelType &KernelFunc,
@@ -3928,14 +3916,12 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
39283916 detail::KernelWrapper<detail::WrapAs::parallel_for, NameT, KernelType,
39293917 sycl::nd_item<Dims>, PropertiesT>::wrap (KernelFunc);
39303918
3931- // TODO UseFallbackAssert
3932-
39333919 return submit_direct_with_event_impl (Range, SI, KRInfo,
39343920 TlsCodeLocCapture.query (),
39353921 TlsCodeLocCapture.isToplevel ());
39363922 }
39373923
3938- template <typename KernelName = detail::auto_name, bool UseFallbackAssert,
3924+ template <typename KernelName = detail::auto_name,
39393925 typename PropertiesT, typename KernelType, int Dims>
39403926 void submit_direct_without_event (PropertiesT Props, nd_range<Dims> Range,
39413927 const KernelType &KernelFunc,
@@ -3955,8 +3941,6 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
39553941 detail::KernelWrapper<detail::WrapAs::parallel_for, NameT, KernelType,
39563942 sycl::nd_item<Dims>, PropertiesT>::wrap (KernelFunc);
39573943
3958- // TODO UseFallbackAssert
3959-
39603944 submit_direct_without_event_impl (Range, SI, KRInfo,
39613945 TlsCodeLocCapture.query (),
39623946 TlsCodeLocCapture.isToplevel ());
0 commit comments