Commit 928619bd authored by Marcel Koch's avatar Marcel Koch
Browse files

use reference exec as master for GPU execs

parent ab0ac669
......@@ -52,9 +52,9 @@ std::shared_ptr< gko::Executor > get_executor( exec_tag tag, int device_id = 0 )
const std::map< exec_tag, std::function< std::shared_ptr< gko::Executor >() > > executor_factory{
{ exec_tag::reference, [] { return gko::ReferenceExecutor::create(); } },
{ exec_tag::omp, [] { return gko::OmpExecutor::create(); } },
{ exec_tag::cuda, [&] { return gko::CudaExecutor::create( device_id, gko::OmpExecutor::create(), true ); } },
{ exec_tag::hip, [&] { return gko::HipExecutor::create( device_id, gko::OmpExecutor::create(), true ); } },
{ exec_tag::dpcpp, [&] { return gko::DpcppExecutor::create( device_id, gko::OmpExecutor::create() ); } } };
{ exec_tag::cuda, [&] { return gko::CudaExecutor::create( device_id, gko::ReferenceExecutor::create(), true ); } },
{ exec_tag::hip, [&] { return gko::HipExecutor::create( device_id, gko::ReferenceExecutor::create(), true ); } },
{ exec_tag::dpcpp, [&] { return gko::DpcppExecutor::create( device_id, gko::ReferenceExecutor::create() ); } } };
const auto gko_info = gko::version_info::get();
const std::map< exec_tag, gko::version > version{ { exec_tag::reference, gko_info.reference_version },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment