dealii / dealii

The development repository for the deal.II finite element library
https://www.dealii.org
Other
1.4k stars 751 forks source link

Automatic choosing of the executor when using the Ginkgo library. #7605

Open pratikvn opened 5 years ago

pratikvn commented 5 years ago

This issue is related to an idea proposed by @jppelteret in #7368 .

Pros:

  1. Uniform solver constructor for the ginkgo solver as for the other deal.ii solvers because executor no longer needs to be a parameter.
  2. Easier for the user.

Cons: ?

Possible steps:

  1. Detection of available executors: Can be detected within ginkgo.
  2. Solving a simple dummy system to identify the best performant executor (Might be a bit tricky here as this may not apply to all cases).
jppelteret commented 5 years ago

Just to be clear, this wouldn't be a replacement to the existing constructor with the signature

    SolverBase(SolverControl &                solver_control,
             std::shared_ptr<gko::Executor> executor,
             ....)

but rather an additional/alternative one.