From b638b00bf84b8095f793a2425be22af659876c91 Mon Sep 17 00:00:00 2001 From: Arturo Vargas Date: Thu, 26 Dec 2024 17:00:05 -0800 Subject: [PATCH] basic proof of concept for raja launch --- include/RAJA/pattern/launch/launch_core.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/RAJA/pattern/launch/launch_core.hpp b/include/RAJA/pattern/launch/launch_core.hpp index 9abd92c5c3..53aee6f264 100644 --- a/include/RAJA/pattern/launch/launch_core.hpp +++ b/include/RAJA/pattern/launch/launch_core.hpp @@ -215,6 +215,8 @@ class LaunchContext } }; +//----------- + template struct LaunchExecute; @@ -257,14 +259,15 @@ void launch(LaunchParams const &launch_params, const char *kernel_name, ReducePa template void launch(LaunchParams const &launch_params, ReduceParams&&... rest_of_launch_args) { - - const char *kernel_name = nullptr; + std::cout<<"-----RAJA launch!----"<(rest_of_launch_args)...); //get kernel name - std::string kname; + auto kernel_name = expt::get_kernel_name(std::forward(rest_of_launch_args)...); + std::string kname = get_kernel_name::get(kernel_name); auto&& launch_body = expt::get_lambda(std::forward(rest_of_launch_args)...); @@ -284,7 +287,7 @@ void launch(LaunchParams const &launch_params, ReduceParams&&... rest_of_launch_ using Res = typename resources::get_resource::type; - launch_t::exec(Res::get_default(), launch_params, kernel_name, p_body, reducers); + launch_t::exec(Res::get_default(), launch_params, kernel_name_ptr, p_body, reducers); util::callPostLaunchPlugins(context); }