Skip to content

Commit

Permalink
fix kernel naming in examplle
Browse files Browse the repository at this point in the history
  • Loading branch information
artv3 committed Dec 28, 2024
1 parent d10141a commit dc13531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/launch-param-reductions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,14 +293,14 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[]))

RAJA::launch<LAUNCH_POL3>
(device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(CUDA_BLOCK_SIZE)),
"CUDAReductionKernel",
RAJA::expt::Reduce<RAJA::operators::plus >(&cuda_sum),
RAJA::expt::Reduce<RAJA::operators::minimum>(&cuda_min),
RAJA::expt::Reduce<RAJA::operators::maximum>(&cuda_max),
RAJA::expt::Reduce<RAJA::operators::minimum>(&cuda_minloc),
RAJA::expt::Reduce<RAJA::operators::maximum>(&cuda_maxloc),
RAJA::expt::ReduceLoc<RAJA::operators::minimum>(&cuda_min2, &cuda_minloc2),
RAJA::expt::ReduceLoc<RAJA::operators::maximum>(&cuda_max2, &cuda_maxloc2),
RAJA::KernelName( "CUDAReductionKernel"),
[=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx,
VALOP_INT_SUM &_cuda_sum,
VALOP_INT_MIN &_cuda_min,
Expand Down Expand Up @@ -370,14 +370,14 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[]))

RAJA::launch<LAUNCH_POL3>
(device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(HIP_BLOCK_SIZE)),
"HipReductionKernel",
RAJA::expt::Reduce<RAJA::operators::plus >(&hip_sum),
RAJA::expt::Reduce<RAJA::operators::minimum>(&hip_min),
RAJA::expt::Reduce<RAJA::operators::maximum>(&hip_max),
RAJA::expt::Reduce<RAJA::operators::minimum>(&hip_minloc),
RAJA::expt::Reduce<RAJA::operators::maximum>(&hip_maxloc),
RAJA::expt::ReduceLoc<RAJA::operators::minimum>(&hip_min2, &hip_minloc2),
RAJA::expt::ReduceLoc<RAJA::operators::maximum>(&hip_max2, &hip_maxloc2),
RAJA::expt::KernelName( "HipReductionKernel"),
[=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx,
VALOP_INT_SUM &_hip_sum,
VALOP_INT_MIN &_hip_min,
Expand Down Expand Up @@ -444,14 +444,14 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[]))

RAJA::launch<LAUNCH_POL4>
(device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(SYCL_BLOCK_SIZE)),
"SyclReductionKernel",
RAJA::expt::Reduce<RAJA::operators::plus >(&sycl_sum),
RAJA::expt::Reduce<RAJA::operators::minimum>(&sycl_min),
RAJA::expt::Reduce<RAJA::operators::maximum>(&sycl_max),
RAJA::expt::Reduce<RAJA::operators::minimum>(&sycl_minloc),
RAJA::expt::Reduce<RAJA::operators::maximum>(&sycl_maxloc),
RAJA::expt::ReduceLoc<RAJA::operators::minimum>(&sycl_min2, &sycl_minloc2),
RAJA::expt::ReduceLoc<RAJA::operators::maximum>(&sycl_max2, &sycl_maxloc2),
RAJA::expt::KernelName( "SyclReductionKernel",
[=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx,
VALOP_INT_SUM &_sycl_sum,
VALOP_INT_MIN &_sycl_min,
Expand Down

0 comments on commit dc13531

Please sign in to comment.