Tobias Meyer Andersen
e9d6b326cc
Add HIP support for AMD GPUs
...
This commits adds cmake functionality that can
hipify the cuistl framework to support AMD GPUs.
Some tests have been written as HIP does not mirror
CUDA exactly.
CONVERT_CUDA_TO_HIP is the new CMAKE argument.
CMAKE version is increased to include HIP
as a language (3.21 required).
A macro is added to create a layer of indirection
that will make only cuistl files that have been
changed rehipified.
Some BDA stuff is extracted to make sure CUDA
is not accidentally included.
2024-05-06 15:56:53 +02:00
Arne Morten Kvarving
0cafaf92cb
Merge pull request #5332 from multitalentloes/remove_thrust_dependency
...
remove usage of thrust
2024-05-03 14:14:14 +02:00
Tobias Meyer Andersen
d5c088bb20
remove unused headers
2024-05-03 13:45:24 +02:00
Tobias Meyer Andersen
d795561100
remove usage of thrust
2024-05-03 12:52:27 +02:00
Bård Skaflestad
226e90f8e1
Merge pull request #5324 from daavid00/fixMass
...
Bug fix massGas in place
2024-05-03 09:41:14 +02:00
Atgeirr Flø Rasmussen
f0855f4f48
Merge pull request #5293 from totto82/fixInitGW
...
Fix gas-water initialization with transision zone
2024-05-02 15:57:13 +02:00
Bård Skaflestad
a9d7457ca3
Merge pull request #5326 from akva2/fix_bda_disable
...
fixed: properly avoid inclusion of BDA types if BDA is disabled
2024-05-02 13:07:19 +02:00
Arne Morten Kvarving
0c3da92272
Merge pull request #5325 from hakonhagland/python_mpi
...
Allow Python bindings to control MPI setup in the OPM::Main constructor
2024-05-02 11:38:32 +02:00
Arne Morten Kvarving
3024fba293
fixed: properly avoid inclusion of BDA types if BDA is disabled
2024-05-02 11:37:03 +02:00
Håkon Hægland
a1b7d4b5dd
Allow Python bindings to setup MPI
...
Allows the Python bindings to control whether MPI_Init() and
MPI_Finalize() will be called when creating an OPM::Main object.
2024-05-02 11:14:07 +02:00
David Landa Marban
955cdbf02f
Bug fix massGas in place
2024-04-30 11:51:16 +02:00
Atgeirr Flø Rasmussen
da5f20a0d9
Merge pull request #5145 from multitalentloes/add_gpu_direct
...
Add GPU Direct
2024-04-29 14:08:25 +02:00
Atgeirr Flø Rasmussen
e767b6145f
Avoid getting parameters in hot path.
2024-04-26 16:46:27 +02:00
Bård Skaflestad
d25c9d035f
Merge pull request #5311 from blattms/fix/uninit-warn
...
Fixes uninitialized variable warning with gcc-12
2024-04-25 10:34:05 +02:00
Markus Blatt
87c4471f96
Fixes uninitialized variable warning with gcc-12
2024-04-25 09:26:31 +02:00
Bård Skaflestad
1dfdae3892
Merge pull request #5309 from akva2/aquifers_template_scalar
...
Aquifer: use Scalar type
2024-04-24 16:50:31 +02:00
Arne Morten Kvarving
6d0cbb47f3
BlackoilAquiferModel: use Scalar type
2024-04-24 15:22:00 +02:00
Arne Morten Kvarving
46e668911d
AquiferCarterTracy: use Scalar type
2024-04-24 15:15:24 +02:00
Arne Morten Kvarving
687695882c
AquiferConstantFlux: use Scalar type
2024-04-24 15:08:41 +02:00
Arne Morten Kvarving
f9f568d5ea
AquiferNumerical: use Scalar type
2024-04-24 15:01:55 +02:00
Tor Harald Sandve
bf5380b2c6
Merge pull request #5296 from totto82/fixGasLift2LevelAlqLimit
...
Redistribute gaslift for groups with alq limit
2024-04-24 14:54:22 +02:00
Arne Morten Kvarving
a1ebca0a3e
AquiferAnalytical: use Scalar type
2024-04-24 14:50:25 +02:00
Arne Morten Kvarving
7e86106ecc
AquiferInterface: use Scalar type
2024-04-24 14:43:08 +02:00
Tor Harald Sandve
bac49c200e
Redistribute gaslift for groups with alq limit
2024-04-24 09:44:09 +02:00
Arne Morten Kvarving
f5d6b69703
BlackoilWellModel: use Scalar type
2024-04-23 11:33:33 +02:00
Arne Morten Kvarving
f0e7f8842b
BlackoilWellModelGeneric: template Scalar type
2024-04-23 11:33:33 +02:00
Arne Morten Kvarving
3d381bac91
BlackoilWellModelGuideRates: template Scalar type
2024-04-22 15:39:51 +02:00
Arne Morten Kvarving
77f9692277
BlackoilWellModelConstraints: template Scalar type
2024-04-22 15:39:51 +02:00
Arne Morten Kvarving
ddd61f4176
BlackoilWellModelRestart: template Scalar type
2024-04-22 15:39:51 +02:00
Atgeirr Flø Rasmussen
edf4be5f79
Merge pull request #5227 from akva2/improve_ide_experience
...
Improve IDE experience
2024-04-22 15:31:08 +02:00
Atgeirr Flø Rasmussen
a2b660d705
Merge pull request #5295 from akva2/wellgrouphelpers_template_scalar
...
WellGroupHelpers: template Scalar type
2024-04-22 13:14:23 +02:00
Bård Skaflestad
450bfd04fb
Merge pull request #5297 from akva2/fix_rstconv_mpich
...
fixed: do not send and recv from same buffer
2024-04-19 23:30:37 +02:00
Arne Morten Kvarving
70c9e5345d
fixed: do not send and recv from same buffer
...
even though it's perfectly fine to do so in this case, mpich
will error out with an error if send and recv buffer is
the same
2024-04-19 20:10:47 +02:00
Arne Morten Kvarving
aa03d06c4d
WellGroupHelpers: template Scalar type
2024-04-19 11:28:40 +02:00
Arne Morten Kvarving
522625aca8
WellGroupHelpers: change from namespace to class with static members
...
this to simplify adding support for float Scalars
2024-04-19 11:01:29 +02:00
Arne Morten Kvarving
ca0ca3c43e
FractionCalculator: template Scalar type
2024-04-19 11:00:57 +02:00
Arne Morten Kvarving
c226c5c216
InjectionTargetCalculator: template Scalar type
2024-04-19 11:00:44 +02:00
Arne Morten Kvarving
eb3bbbb926
TargetCalculator: template Scalar type
2024-04-19 11:00:38 +02:00
Arne Morten Kvarving
6197aab409
TargetCalculator: move to namespace Opm::WGHelpers
2024-04-19 11:00:28 +02:00
Arne Morten Kvarving
9a42b70f20
TargetCalculator: drop indent for namespace
2024-04-19 11:00:20 +02:00
Arne Morten Kvarving
d6fc7cc4f6
WellGroupHelpers: drop indent for namespace
2024-04-19 10:59:53 +02:00
Tor Harald Sandve
af2e08d5aa
Also fix gas-oil initialization with transision zone
2024-04-19 10:12:14 +02:00
Tor Harald Sandve
575bc813dd
Fix gas-water initialization with transision zone
2024-04-19 08:39:24 +02:00
Tobias Meyer Andersen
f4b9e0a3a8
add safe conversion
2024-04-17 14:31:07 +02:00
Tobias Meyer Andersen
29cc7c4925
make variable naming convention more consistent
2024-04-17 13:49:08 +02:00
Tobias Meyer Andersen
2eefedf661
remove error logging in std::cerr
2024-04-17 13:46:49 +02:00
Tobias Meyer Andersen
ccd014cc1a
remove some usage of this->
2024-04-17 13:28:30 +02:00
Tobias Meyer Andersen
a649bef271
update GPU direct support check
2024-04-17 13:28:30 +02:00
Tobias Meyer Andersen
7235f34f0e
Add classes handling correct MPI implementation
...
Make some changes to Georgs original code:
dynamically allocated arrays with std::vectors instead
Implement new class structure handling what
MPI communication implementation to use
create extra scopes to avoid reuse of index variable i
Update related tests:
Update test_cuowneroverlapcopy to account for new
class strucutre
Also remove line that invalidates the MPI tests for multiple processes
2024-04-17 13:28:30 +02:00
Georg Zitzlsberger
eb6f9dc1f9
Prototype implementation of CUDA aware MPI
2024-04-17 13:28:30 +02:00