Skip to content

pyop3 compatibility - #472

Open
connorjward wants to merge 13 commits into
mainfrom
connorjward/pyop3
Open

connorjward wants to merge 13 commits into
mainfrom
connorjward/pyop3

Conversation

@connorjward

@connorjward connorjward commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The changes needed to get Thetis working with the latest Firedrake main. The main change was adapting all of the PyOP2 parloops into pyop3 ones. The reason this all took so long was that I found a couple of bugs in Firedrake that needed fixing first.

An important thing to flag: CI is now substantially slower than before. This has also been the experience in the main Firedrake repository. We are working on a number of performance fixes with the help of the G-ADOPT team, but CI performance is always going to be slower because pyop3 is more complicated than PyOP2. In principle these differences should only be setup costs, and hence amortize with full-scale runs. That said, any help to improve performance is very welcome.

* Convert all parloops to pyop3 ones
* Remove other refs to pyop2

Tests are now failing with a numerics error. Detailed debugging needed.
@stephankramer

Copy link
Copy Markdown
Contributor

Many thanks Connor, this is extremely helpful. Happy to merge this when it passes the smoke tests and then we'll see what other tests need fixing

@connorjward
connorjward marked this pull request as ready for review October 23, 2026 11:48
@connorjward

Copy link
Copy Markdown
Contributor Author

Mostly passing but with some failures, including one that looks quite complicated. I can have a hack around on this soon-ish.

@connorjward

connorjward commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

I think that once firedrakeproject/firedrake#5662 is merged then everything should hopefully pass now.

It is merged. Hopefully final fixups are done.

@connorjward

connorjward commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

I have found one more fix to do. PR to follow tomorrow firedrakeproject/firedrake#5679. This is very close.

An important thing to flag: CI is now substantially slower than before. This has also been the experience in the main Firedrake repository. We are working on a number of performance fixes with the help of the G-ADOPT team, but CI performance is always going to be slower because pyop3 is more complicated than PyOP2. In principle these differences should only be setup costs, and hence amortize with full-scale runs. That said, any help to improve performance is very welcome.

@connorjward

Copy link
Copy Markdown
Contributor Author

@stephankramer @cpjordan very pleased to say that this is finally passing tests!

@stephankramer stephankramer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes all make sense. CI time is still very reasonable, so I assume the increase is just one-off compile time indeed and negligible in production runs. Many thanks @connorjward , much appreciated!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants