@@ -308,11 +308,7 @@ namespace detail {
308308template <typename T, typename F>
309309AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
310310std::enable_if_t <std::is_same_v<std::decay_t <decltype (std::declval<T>().box())>, Box>, void >
311- tagparfor_call_f (
312- #ifdef AMREX_USE_SYCL
313- sycl::nd_item<1 > const & item,
314- #endif
315- int icell, T const & tag, F&& f) noexcept
311+ tagparfor_call_f (int icell, T const & tag, F&& f) noexcept
316312{
317313 int ncells = tag.box ().numPts ();
318314 const auto len = amrex::length (tag.box ());
@@ -323,28 +319,16 @@ tagparfor_call_f (
323319 i += lo.x ;
324320 j += lo.y ;
325321 k += lo.z ;
326- #ifdef AMREX_USE_SYCL
327- f (item, icell, ncells, i, j, k, tag);
328- #else
329- f ( icell, ncells, i, j, k, tag);
330- #endif
322+ f (icell, ncells, i, j, k, tag);
331323}
332324
333325template <typename T, typename F>
334326AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
335327std::enable_if_t <std::is_integral_v<std::decay_t <decltype (std::declval<T>().size())> >, void >
336- tagparfor_call_f (
337- #ifdef AMREX_USE_SYCL
338- sycl::nd_item<1 > const & item,
339- #endif
340- int i, T const & tag, F&& f) noexcept
328+ tagparfor_call_f (int i, T const & tag, F&& f) noexcept
341329{
342330 int N = tag.size ();
343- #ifdef AMREX_USE_SYCL
344- f (item, i, N, tag);
345- #else
346- f ( i, N, tag);
347- #endif
331+ f (i, N, tag);
348332}
349333
350334template <class TagType , class F >
@@ -388,11 +372,7 @@ ParallelFor_doit (TagVector<TagType> const& tv, F const& f)
388372#endif
389373 int icell = b_wid*Gpu::Device::warp_size + lane;
390374
391- #ifdef AMREX_USE_SYCL
392- tagparfor_call_f (item, icell, d_tags[tag_id], f);
393- #else
394- tagparfor_call_f ( icell, d_tags[tag_id], f);
395- #endif
375+ tagparfor_call_f (icell, d_tags[tag_id], f);
396376 });
397377}
398378
@@ -454,9 +434,6 @@ ParallelFor (TagVector<TagType> const& tv, int ncomp, F const& f)
454434{
455435 detail::ParallelFor_doit (tv,
456436 [=] AMREX_GPU_DEVICE (
457- #ifdef AMREX_USE_SYCL
458- sycl::nd_item<1 > const & /* item*/ ,
459- #endif
460437 int icell, int ncells, int i, int j, int k, TagType const & tag) noexcept
461438 {
462439 if (icell < ncells) {
@@ -473,9 +450,6 @@ ParallelFor (TagVector<TagType> const& tv, F const& f)
473450{
474451 detail::ParallelFor_doit (tv,
475452 [=] AMREX_GPU_DEVICE (
476- #ifdef AMREX_USE_SYCL
477- sycl::nd_item<1 > const & /* item*/ ,
478- #endif
479453 int icell, int ncells, int i, int j, int k, TagType const & tag) noexcept
480454 {
481455 if (icell < ncells) {
@@ -490,9 +464,6 @@ ParallelFor (TagVector<TagType> const& tv, F const& f)
490464{
491465 detail::ParallelFor_doit (tv,
492466 [=] AMREX_GPU_DEVICE (
493- #ifdef AMREX_USE_SYCL
494- sycl::nd_item<1 > const & /* item*/ ,
495- #endif
496467 int icell, int ncells, TagType const & tag) noexcept
497468 {
498469 if (icell < ncells) {
0 commit comments