Skip to content

Commit c140744

Browse files
Merge pull request #1879 from arcaneframework/dev/gg-fix-sycl-compilation
Fix compilation with SYCL.
2 parents b2c106c + 5eb8e78 commit c140744

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

arcane/src/arcane/accelerator/KernelLauncher.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class DoIndirectSYCLLambda
233233
{
234234
public:
235235

236-
void operator()(sycl::nd_item<1> x, SmallSpan<const Int32> ids, Lambda func, RemainingArgs... reducer_args) const
236+
void operator()(sycl::nd_item<1> x, SmallSpan<const Int32> ids, Lambda func, RemainingArgs... remaining_args) const
237237
{
238238
using BuilderType = TraitsType::BuilderType;
239239
using LocalIdType = BuilderType::ValueType;
@@ -243,9 +243,9 @@ class DoIndirectSYCLLambda
243243
Int32 i = static_cast<Int32>(x.get_global_id(0));
244244
if (i < ids.size()) {
245245
LocalIdType lid(ids[i]);
246-
body(BuilderType::create(i, lid), reducer_args...);
246+
body(BuilderType::create(i, lid), remaining_args...);
247247
}
248-
KernelReducerHelper::applyReducerArgs(x, reducer_args...);
248+
KernelRemainingArgsHelper::applyRemainingArgs(x, remaining_args...);
249249
}
250250
void operator()(sycl::id<1> x, SmallSpan<const Int32> ids, Lambda func) const
251251
{
@@ -376,7 +376,7 @@ void _applyKernelSYCL(impl::RunCommandLaunchInfo& launch_info, SyclKernel kernel
376376
Int32 b = tbi.nbBlockPerGrid();
377377
Int32 t = tbi.nbThreadPerBlock();
378378
sycl::nd_range<1> loop_size(b * t, t);
379-
event = s.parallel_for(loop_size, [=](sycl::nd_item<1> i) { kernel(i, args, func, reducer_args...); });
379+
event = s.parallel_for(loop_size, [=](sycl::nd_item<1> i) { kernel(i, args, func, remaining_args...); });
380380
}
381381
else {
382382
sycl::range<1> loop_size = launch_info.totalLoopSize();

arcane/src/arcane/accelerator/RunCommandMaterialEnumerate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ class DoMatContainerSYCLLambda
530530
if (i < items.size()) {
531531
body(items[i], remaining_args...);
532532
}
533-
KernelReducerHelper::applyReducerArgs(x, remaining_args...);
533+
KernelRemainingArgsHelper::applyRemainingArgs(x, remaining_args...);
534534
}
535535

536536
void operator()(sycl::id<1> x, ContainerType items, Lambda func) const

0 commit comments

Comments
 (0)