My Project
Loading...
Searching...
No Matches
PreconditionerFactoryGPUIncludeWrapper.hpp
1/*
2 Copyright 2024 SINTEF AS
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20// This file keeps the factory a bit more tidy.
21// When adding a new GPU preconditioner make sure to add it
22// both with the normal cuistl path, and the hipistl path
23#if HAVE_CUDA
24#if USE_HIP
25#include <opm/simulators/linalg/gpuistl_hip/GpuBlockPreconditioner.hpp>
26#include <opm/simulators/linalg/gpuistl_hip/GpuDILU.hpp>
27#include <opm/simulators/linalg/gpuistl_hip/OpmGpuILU0.hpp>
28#include <opm/simulators/linalg/gpuistl_hip/GpuJac.hpp>
29#include <opm/simulators/linalg/gpuistl_hip/GpuSeqILU0.hpp>
30#include <opm/simulators/linalg/gpuistl_hip/PreconditionerAdapter.hpp>
31#include <opm/simulators/linalg/gpuistl_hip/PreconditionerConvertFieldTypeAdapter.hpp>
32#include <opm/simulators/linalg/gpuistl_hip/detail/gpu_safe_call.hpp>
33#else
34#include <opm/simulators/linalg/gpuistl/GpuBlockPreconditioner.hpp>
35#include <opm/simulators/linalg/gpuistl/GpuDILU.hpp>
36#include <opm/simulators/linalg/gpuistl/OpmGpuILU0.hpp>
37#include <opm/simulators/linalg/gpuistl/GpuJac.hpp>
38#include <opm/simulators/linalg/gpuistl/GpuSeqILU0.hpp>
39#include <opm/simulators/linalg/gpuistl/PreconditionerAdapter.hpp>
40#include <opm/simulators/linalg/gpuistl/PreconditionerConvertFieldTypeAdapter.hpp>
41#include <opm/simulators/linalg/gpuistl/detail/gpu_safe_call.hpp>
42#endif
43#endif