Skip to content

add GPU decorators in fluidmatrixinteractions#5144

Merged
multitalentloes merged 3 commits into
OPM:masterfrom
multitalentloes:add_decorators
May 6, 2026
Merged

add GPU decorators in fluidmatrixinteractions#5144
multitalentloes merged 3 commits into
OPM:masterfrom
multitalentloes:add_decorators

Conversation

@multitalentloes
Copy link
Copy Markdown
Member

Adding GPU decorators to many files needed by #5131

@multitalentloes multitalentloes added the manual:irrelevant This PR is a minor fix and should not appear in the manual label May 6, 2026
@multitalentloes multitalentloes changed the title add GPU decorators add GPU decorators in fluidmatrixinteractions May 6, 2026
@multitalentloes
Copy link
Copy Markdown
Member Author

jenkins build this rocm hipify please

Copy link
Copy Markdown
Member

@atgeirr atgeirr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be merged when green.

With this, the GPU code can only handle the default 3-phase model and not Stone 1 or Stone 2. That is fine for now, but it is not clear to me how we will guard against that. We should stop the simulator if the user requests an unsupported option for a run on GPU instead of silently running with the default option. It is not necessary to do that in this PR, but it should be prioritized. The same applies to the LET vs normal choice.

@multitalentloes
Copy link
Copy Markdown
Member Author

Agree with the exception handling, I have added some error macros to handle any deviation from the exactly the physiscs that we support on the GPU

@multitalentloes
Copy link
Copy Markdown
Member Author

jenkins build this rocm hipify please

@multitalentloes
Copy link
Copy Markdown
Member Author

The checks will instead happen at a different layer so they do not cause overhead on a per-cell basis every time it is called.

@multitalentloes
Copy link
Copy Markdown
Member Author

jenkins build this rocm hipify please

@multitalentloes multitalentloes merged commit 1d4e1ce into OPM:master May 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:irrelevant This PR is a minor fix and should not appear in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants