Skip to content

Commit

Permalink
fix SYCL|DPCPP executor selection
Browse files Browse the repository at this point in the history
  • Loading branch information
greole committed Sep 12, 2024
1 parent 69387ee commit 9ba62aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DevicePersistent/ExecutorHandler/ExecutorHandler.H
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ struct ExecutorInitFunctor {
executor_name_(executor_name),
field_name_(field_name),
verbose_(verbose)
{}
{
}


void update(std::shared_ptr<gko::Executor>) const {}
Expand All @@ -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 "
Expand Down

0 comments on commit 9ba62aa

Please sign in to comment.