mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5591 from multitalentloes/fix_gpubicgstab_name
update the name of the solver to fit with gpuistl
This commit is contained in:
commit
15c111f942
@ -204,7 +204,7 @@ namespace Dune
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_CUDA
|
#if HAVE_CUDA
|
||||||
} else if (solver_type == "cubicgstab") {
|
} else if (solver_type == "gpubicgstab") {
|
||||||
linsolver_.reset(new Opm::gpuistl::SolverAdapter<Operator, Dune::BiCGSTABSolver, VectorType>(
|
linsolver_.reset(new Opm::gpuistl::SolverAdapter<Operator, Dune::BiCGSTABSolver, VectorType>(
|
||||||
*linearoperator_for_solver_,
|
*linearoperator_for_solver_,
|
||||||
*scalarproduct_,
|
*scalarproduct_,
|
||||||
|
@ -31,7 +31,7 @@ setDevice(int mpiRank, [[maybe_unused]] int numberOfMpiRanks)
|
|||||||
[[maybe_unused]] auto cuError = cudaGetDeviceCount(&deviceCount);
|
[[maybe_unused]] auto cuError = cudaGetDeviceCount(&deviceCount);
|
||||||
|
|
||||||
if (deviceCount <= 0) {
|
if (deviceCount <= 0) {
|
||||||
// If they have CUDA enabled (ie. using a component that needs CUDA, eg. cubicgstab or CUILU0), this will fail
|
// If they have CUDA enabled (ie. using a component that needs CUDA, eg. gpubicgstab or CUILU0), this will fail
|
||||||
// later down the line. At this point in the simulator, we can not determine if CUDA is enabled, so we can only
|
// later down the line. At this point in the simulator, we can not determine if CUDA is enabled, so we can only
|
||||||
// issue a warning.
|
// issue a warning.
|
||||||
OpmLog::warning("Could not find any CUDA devices.");
|
OpmLog::warning("Could not find any CUDA devices.");
|
||||||
|
Loading…
Reference in New Issue
Block a user