Open cedricchevalier19 opened 2 years ago
Proposition (for the solver part of the backend):
A plugin shall provide an implementation (eg. PluginSolver) of the IInternalLinearSolver interface, and 4 additional functions to load classes through dlopen :
PluginSolver
IInternalLinearSolver
dlopen
extern "C" { IInternalLinearSolver* createDefault() { return new PluginSolver(); } IInternalLinearSolver* create(const Alien::BackEnd::Options& options) { return new PluginSolver(options); } void destroy(IInternalLinearSolver* p) { delete p; } BackEndId name() { return "pluginXX"; } }
The name() function could be moved to IInternalLinearSolver::name()
IInternalLinearSolver::name()
Proposition (for the solver part of the backend):
A plugin shall provide an implementation (eg.
PluginSolver
) of theIInternalLinearSolver
interface, and 4 additional functions to load classes throughdlopen
:The name() function could be moved to
IInternalLinearSolver::name()