Skip to content

GPU bridges - #7462

Draft
multitalentloes wants to merge 15 commits into
OPM:masterfrom
multitalentloes:all_gpu_bridges_1
Draft

multitalentloes wants to merge 15 commits into
OPM:masterfrom
multitalentloes:all_gpu_bridges_1

Conversation

@multitalentloes

@multitalentloes multitalentloes commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

This PR connects GPU properties, assembly, linear solving, and Newton updates through shared persistent device storage, reducing transfers and CPU pre/post-processing costs. This first version primarily supports SPE11C, some initial performance results are present below.

The full implementation is being split into twelve reviewable PRs. Numbers below identify plan items; checked means merged. Unsubmitted items are already represented in the full implementation.

Preliminary SPE11C performance

Selected full-schedule runs with diffusion and dispersion disabled, using a Ryzen 9 7950X and Radeon Pro W7900. CPU uses 16 MPI ranks with CPRW; GPU uses one MPI rank, 16 host threads, GPU properties/assembly/Newton updates, and CPR true-IMPES/Hypre.

Case Active cells CPU simulation GPU simulation Speedup
RSC_64 270,336 1,026.17 s 384.26 s 2.67×
RSC_96 903,168 5,854.34 s 1,040.04 s 5.63×
RSC_144 3,027,456 26,224.16 s 3,745.46 s 7.00×
RSC_176 5,513,728 54,614.51 s 7,591.85 s 7.19×

@multitalentloes multitalentloes added the manual:new-feature This is a new feature and should be described in the manual label Oct 22, 2026
Use shared Newton physics for device corrections, scratch/commit updates, phase switching and stabilization history. Preserve explicit host-cache boundaries across advance, restore, CPU fallback and diagnostic transitions. Scope floating-point contraction flags to the device Newton translation unit and retain same-state shadow diagnostics. Keep convergence and model-update consumers on the full host mirror until the compact-data follow-up.
Count successful GpuBuffer and smart-pointer allocations and helper uploads only in opt-in scopes. Verify owner construction produces nonzero diagnostics and current-slot refresh preserves static counters. Check device Newton launch itself performs no owned allocation or host upload.
Retain the full report keys on the focused resident-Newton branch. Discover optional source, compact-output and true-IMPES counter groups at instantiation; absent features report zero. Include source gathers in aggregate IQ downloads without introducing implementation dependencies.
Report the affected cell when a CPU storage block is singular or produces invalid weights, including when Dune small-matrix checks are disabled. Rethrow failures after the OpenMP region so the collective exception handler can report them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:new-feature This is a new feature and should be described in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant