Hi Drew,

Le dimanche 22 septembre 2024 à 15:24 +0200, Drew Parsons a écrit :
> Package: octave
> Version: 9.2.0-3
> Severity: normal
> 
> sundials 7 is now available in experimental
> 
> In principle octave 9.2 is already patched to support sundials 7, and
> indeed configure does find ida/ida.h, SUNLinSol_Dense,
> SUNSparseMatrix_Reallocate etc.
> 
> But it misses nvector_serial.h for some reason, and consequently loses
> support for ode15i and ode15s
> 
> checking for klu.h... yes
> checking for klu_solve in -lklu ... yes
> checking for UMFPACK separate complex matrix and rhs split... yes
> checking for nvector_serial.h... no
> checking for nvector/nvector_serial.h... no
> configure: WARNING: SUNDIALS NVECTOR serial library not found.  The solvers 
> ode15i and ode15s will be disabled.
> 
> Not quite sure why it's missing nvector/nvector_serial.h. It's still
> provided by libsundials-dev 7.1.1+dfsg1-1exp1
> 
> There is one point to keep in mind for sundials 7.  MPI support is now
> moved into the core library because of sunmpicomm, introduced in
> https://github.com/LLNL/sundials/pull/370
> So a standard build might fail with
> "sundials_types.h:57:10: fatal error: mpi.h: No such file or directory"
> which can be worked around by setting CC=mpicc

Looking at config.log, I confirm that the problem comes from mpi.h not
being found.

However I’m quite reluctant to compiling Octave with a MPI compiler
wrapper, as you suggest. This is not the recommended way of compiling
Octave, and I am not really willing to deal with the issues that could
arise because of that change.

If I understand correctly what happened in sundials upstream, an
alternative could be to provide distinct Debian packages of sundials
without MPI support. But of course that means more work for you.

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  https://www.debian.org

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to