Commit Graph
8 Commits
Author SHA1 Message Date
Kjetil Olsen Lye b2ca7e8769 GPU portability: OPM_HOST_DEVICE/OPM_THROW additions and fluidSystem() use
Decorates inline helpers in blackoil*modules.hh, blackoilprimaryvariables.hh,
directionalmobility.hh, tpfalinearizer.hh, NewTranFluxModule.hpp,
TemperatureModel.hpp and BlackOilEnergyIntensiveQuantitiesGlobalIndex.hpp
with OPM_HOST_DEVICE, replaces a few raw `throw`s with OPM_THROW, and
switches static `FluidSystem::` accesses to instance-based
`fluidState.fluidSystem()` / `getFluidSystem()` so the same code works
when the fluid system lives on the device.  Test
test_gpu_linear_two_phase_material.cu picks up the matching template
adjustments.
2026-05-05 07:55:21 +02:00
Tobias Meyer Andersen 0b887fdcbc simplify tests 2025-02-12 11:04:28 +01:00
Tobias Meyer Andersen fa02d686d4 refactor move_to_gpu 2025-01-13 11:19:43 +01:00
Tobias Meyer Andersen 6c29cf6962 use less template arguments 2025-01-08 15:08:50 +01:00
Tobias Meyer Andersen b48479b7e4 fix piecewiselineartwophasematerial tests
Fixing the test required avoid accesses to a
mutable gpu buffer on the CPU. Removing function
from the GPUBuffer and GPUView class also required
a minor adjustment in the GPUView test.
2025-01-08 08:35:21 +01:00
Tobias Meyer Andersen 9bdc361368 fix cmake and cuda bugs 2024-09-25 13:43:00 +02:00
Tobias Meyer Andersen f9b595e078 address feedback to two_phase_material test 2024-09-25 11:23:02 +02:00
Tobias Meyer Andersen e6b6add193 Add tests for AD objects and TwoPhaseMaterial
The tests verify that these objects can be used
inside of GPU kernels
2024-09-25 11:22:27 +02:00