From dc13531bf86408d4321b3085086e09046f7e58cf Mon Sep 17 00:00:00 2001 From: Arturo Vargas Date: Sat, 28 Dec 2024 04:52:35 -0800 Subject: [PATCH] fix kernel naming in examplle --- examples/launch-param-reductions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/launch-param-reductions.cpp b/examples/launch-param-reductions.cpp index c7b732d341..703ca231b5 100644 --- a/examples/launch-param-reductions.cpp +++ b/examples/launch-param-reductions.cpp @@ -293,7 +293,6 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::launch (device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(CUDA_BLOCK_SIZE)), - "CUDAReductionKernel", RAJA::expt::Reduce(&cuda_sum), RAJA::expt::Reduce(&cuda_min), RAJA::expt::Reduce(&cuda_max), @@ -301,6 +300,7 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::expt::Reduce(&cuda_maxloc), RAJA::expt::ReduceLoc(&cuda_min2, &cuda_minloc2), RAJA::expt::ReduceLoc(&cuda_max2, &cuda_maxloc2), + RAJA::KernelName( "CUDAReductionKernel"), [=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx, VALOP_INT_SUM &_cuda_sum, VALOP_INT_MIN &_cuda_min, @@ -370,7 +370,6 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::launch (device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(HIP_BLOCK_SIZE)), - "HipReductionKernel", RAJA::expt::Reduce(&hip_sum), RAJA::expt::Reduce(&hip_min), RAJA::expt::Reduce(&hip_max), @@ -378,6 +377,7 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::expt::Reduce(&hip_maxloc), RAJA::expt::ReduceLoc(&hip_min2, &hip_minloc2), RAJA::expt::ReduceLoc(&hip_max2, &hip_maxloc2), + RAJA::expt::KernelName( "HipReductionKernel"), [=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx, VALOP_INT_SUM &_hip_sum, VALOP_INT_MIN &_hip_min, @@ -444,7 +444,6 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::launch (device_res, RAJA::LaunchParams(RAJA::Teams(NUMBER_OF_TEAMS), RAJA::Threads(SYCL_BLOCK_SIZE)), - "SyclReductionKernel", RAJA::expt::Reduce(&sycl_sum), RAJA::expt::Reduce(&sycl_min), RAJA::expt::Reduce(&sycl_max), @@ -452,6 +451,7 @@ int main(int RAJA_UNUSED_ARG(argc), char** RAJA_UNUSED_ARG(argv[])) RAJA::expt::Reduce(&sycl_maxloc), RAJA::expt::ReduceLoc(&sycl_min2, &sycl_minloc2), RAJA::expt::ReduceLoc(&sycl_max2, &sycl_maxloc2), + RAJA::expt::KernelName( "SyclReductionKernel", [=] RAJA_HOST_DEVICE (RAJA::LaunchContext ctx, VALOP_INT_SUM &_sycl_sum, VALOP_INT_MIN &_sycl_min,