Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

156.18. sundials-7.9.0

ODE and DAE solvers, behind Octave's ode15s and ode15i

7.9.0-1 · BSD-3-Clause · 2.1 SBU · 3.9 MiB, 224 files · 41_system, 895 of 1047 · ports/core/sci-libs/sundials

Homepage: https://computing.llnl.gov/projects/sundials

Depends on: cmake, ninja, gcc, openblas, suitesparse.

Required by (1): octave.

Sources: sundials-7.9.0.tar.gz (25.6 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install sundials'

build.sh:

cmake -S . -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_STATIC_LIBS=OFF \
	-DSUNDIALS_PRECISION=double \
	-DSUNDIALS_INDEX_SIZE=64 \
	-DSUNDIALS_ENABLE_KLU=ON \
	-DKLU_INCLUDE_DIR=/usr/include/suitesparse \
	-DKLU_LIBRARY_DIR=/usr/lib \
	-DSUNDIALS_ENABLE_LAPACK=ON \
	-DLAPACK_LIBRARIES=/usr/lib/libopenblas.so \
	-DSUNDIALS_ENABLE_OPENMP=ON \
	-DSUNDIALS_ENABLE_PTHREAD=ON \
	-DSUNDIALS_ENABLE_MPI=OFF \
	-DSUNDIALS_ENABLE_CUDA=OFF \
	-DSUNDIALS_ENABLE_FORTRAN=OFF \
	-DSUNDIALS_ENABLE_PYTHON=OFF \
	-DSUNDIALS_ENABLE_C_EXAMPLES=OFF \
	-DSUNDIALS_ENABLE_CXX_EXAMPLES=OFF \
	-DSUNDIALS_ENABLE_EXAMPLES_INSTALL=OFF \
	-DSUNDIALS_TEST_ENABLE_GTEST=OFF
cmake --build build
DESTDIR=$PKG cmake --install build
test -e "$PKG"/usr/lib/libsundials_sunlinsolklu.so
test -e "$PKG"/usr/lib/libsundials_ida.so

Libraries: libsundials_arkode.so, libsundials_core.so, libsundials_cvode.so, libsundials_cvodes.so, libsundials_ida.so, libsundials_idas.so, libsundials_kinsol.so, libsundials_nvecmanyvector.so, libsundials_nvecopenmp.so, libsundials_nvecpthreads.so, libsundials_nvecserial.so, libsundials_sundomeigestarnoldi.so, libsundials_sundomeigestpower.so, libsundials_sunlinsolband.so, libsundials_sunlinsoldense.so, libsundials_sunlinsolklu.so, libsundials_sunlinsollapackband.so, libsundials_sunlinsollapackdense.so, libsundials_sunlinsolpcg.so, libsundials_sunlinsolspbcgs.so, libsundials_sunlinsolspfgmr.so, libsundials_sunlinsolspgmr.so, libsundials_sunlinsolsptfqmr.so, libsundials_sunmatrixband.so, libsundials_sunmatrixdense.so, libsundials_sunmatrixsparse.so, libsundials_sunnonlinsolauto.so, libsundials_sunnonlinsolfixedpoint.so, libsundials_sunnonlinsolnewton.so.

Directories: /usr/include/arkode, /usr/include/cvode, /usr/include/cvodes, /usr/include/ida, /usr/include/idas, /usr/include/kinsol, /usr/include/nvector, /usr/include/sunadaptcontroller, /usr/include/sunadjointcheckpointscheme, /usr/include/sundials, /usr/include/sundomeigest, /usr/include/sunlinsol, /usr/include/sunmatrix, /usr/include/sunmemory, /usr/include/sunnonlinsol, /usr/lib/cmake/sundials, /usr/share/licenses/sundials.