Skip to content

Wrap raw Vec handles with PetscVec and split the MPI launch - #332

Merged
singhharsh1708 merged 2 commits into
SciML:mainfrom
singhharsh1708:ci-petscjl056
Oct 31, 2026
Merged

singhharsh1708 merged 2 commits into
SciML:mainfrom
singhharsh1708:ci-petscjl056

Conversation

@singhharsh1708

Copy link
Copy Markdown
Member

CI on main is failing again on the Julia 1 jobs. PETSc.jl 0.5.5 deprecates VecPtr entirely, so the keyword form #330 switched to also prints a one-time warning ("VecPtr goes in v0.6: wrap a raw Vec with PetscVec(petsclib, ptr; own)"), and that record shows up in every test that captures logs or counts warnings. CI now resolves PETSc.jl 0.5.6.

PETScCompat.VecPtr now calls PetscVec(pl, ptr; own = false) on PETSc.jl 0.5.4 and later. That method exists from 0.5.4 and returns the same VecPtr wrapper as before, so nothing else changes. None of the other names deprecated in 0.5.5 and 0.5.6 are called from src or ext.

The 3-rank MPI job on Julia 1 was also being killed by the one-hour guard around each mpiexec launch: the one-thread launch ran seven scripts and took just over an hour on current runners, on unchanged main as well. That launch is now two, explicit/implicit/adjoint and dm/types/second_order/exit, each with its own guard. all.jl already loads each script in its own module, and exit.jl still runs last in its launch. No test content changes.

With PETSc.jl 0.5.6, solves log no warnings (the same check on unchanged main captures the warning above), and the solves still pass with PETSc.jl 0.4.14, which the Julia 1.10 jobs resolve. All 17 jobs pass on the fork, with the 3-rank Julia 1 MPI job at 40 minutes: https://github.com/singhharsh1708/PETScDiffEq.jl/actions/runs/41192091938

AI Disclosure: Claude assisted with the code. Testing and review by @singhharsh1708.

@singhharsh1708
singhharsh1708 merged commit 0c37287 into SciML:main Oct 31, 2026
34 of 37 checks passed
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.

1 participant