mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-26 07:30:08 -05:00
make cuda includes safer
This commit is contained in:
1 parent
44a1037acb
commit
24f56176a8
2 files changed
+12
-2
No files matched your search
@@ -34,10 +34,15 @@
|
||||
#include <opm/simulators/linalg/PropertyTree.hpp>
|
||||
#include <opm/simulators/linalg/gpuistl/HypreInterface.hpp>
|
||||
|
||||
#if HAVE_CUDA || HAVE_HIP
|
||||
#if HAVE_CUDA
|
||||
#if USE_HIP
|
||||
#include <opm/simulators/linalg/gpuistl_hip/GpuSparseMatrixWrapper.hpp>
|
||||
#include <opm/simulators/linalg/gpuistl_hip/GpuVector.hpp>
|
||||
#else
|
||||
#include <opm/simulators/linalg/gpuistl/GpuSparseMatrixWrapper.hpp>
|
||||
#include <opm/simulators/linalg/gpuistl/GpuVector.hpp>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <HYPRE.h>
|
||||
#include <_hypre_utilities.h>
|
||||
|
||||
@@ -30,10 +30,15 @@
|
||||
#include "HypreTestHelper.hpp"
|
||||
#include "MpiFixture.hpp"
|
||||
|
||||
#if HAVE_CUDA || HAVE_HIP
|
||||
#if HAVE_CUDA
|
||||
#if USE_HIP
|
||||
#include <opm/simulators/linalg/gpuistl_hip/GpuSparseMatrixWrapper.hpp>
|
||||
#include <opm/simulators/linalg/gpuistl_hip/GpuVector.hpp>
|
||||
#else
|
||||
#include <opm/simulators/linalg/gpuistl/GpuSparseMatrixWrapper.hpp>
|
||||
#include <opm/simulators/linalg/gpuistl/GpuVector.hpp>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using namespace HypreTestHelpers;
|
||||
|
||||
|
||||
Reference in new issue
Block a user