From 9ba62aadf7863e0fbc65441f9cef8d3d684d7190 Mon Sep 17 00:00:00 2001 From: Gregor Olenik Date: Thu, 12 Sep 2024 13:30:00 +0200 Subject: [PATCH] fix SYCL|DPCPP executor selection --- DevicePersistent/ExecutorHandler/ExecutorHandler.H | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DevicePersistent/ExecutorHandler/ExecutorHandler.H b/DevicePersistent/ExecutorHandler/ExecutorHandler.H index 90df64a08..2c048fc27 100644 --- a/DevicePersistent/ExecutorHandler/ExecutorHandler.H +++ b/DevicePersistent/ExecutorHandler/ExecutorHandler.H @@ -34,7 +34,8 @@ struct ExecutorInitFunctor { executor_name_(executor_name), field_name_(field_name), verbose_(verbose) - {} + { + } void update(std::shared_ptr) const {} @@ -56,7 +57,7 @@ struct ExecutorInitFunctor { return gko::share(gko::CudaExecutor::create( device_id_ % gko::CudaExecutor::get_num_devices(), host_exec)); } - if (executor_name_ == "sycl" || "dpcpp") { + if (executor_name_ == "sycl" || executor_name_ == "dpcpp") { if (version.dpcpp_version.tag == not_compiled_tag) { FatalErrorInFunction << "SYCL Backend was not compiled. Recompile OGL/Ginkgo "