mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Restore old HAVE_CUDA value
This commit is contained in:
parent
684397129b
commit
ef6be5859e
@ -19,11 +19,27 @@
|
||||
|
||||
#include <config.h> // CMake
|
||||
|
||||
// MultisegmentWellContribution includes the cuda runtime if found by CMake
|
||||
// this leads to inclusion of both amd_hip_vector_types.h and vector_types.h
|
||||
// which both define vector types like uchar2, short3 and double4.
|
||||
// Restore the value (if defined) afterwards.
|
||||
#ifdef HAVE_CUDA
|
||||
#define HIP_HAVE_CUDA_DEFINED HAVE_CUDA
|
||||
#endif
|
||||
|
||||
#undef HAVE_CUDA
|
||||
|
||||
#include <opm/simulators/linalg/bda/rocsparseWellContributions.hpp>
|
||||
|
||||
#ifdef HIP_HAVE_CUDA_DEFINED
|
||||
#define HAVE_CUDA HIP_HAVE_CUDA_DEFINED
|
||||
#undef HIP_HAVE_CUDA_DEFINED
|
||||
#endif
|
||||
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
#include <opm/common/ErrorMacros.hpp>
|
||||
|
||||
|
||||
#include <hip/hip_runtime.h>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user