As pointed out in the documentation, the KLU solver cany yield drastic performance improvements when simulating massive circuits with lots of transistors. To use it, you need an option in the .spiceinit (which is out of scope for the package) but you also need to have it built-in at compilation time. And currently it's not enabled. So I'd suggest adding --enable-klu to the configure options. This will not change the default behavior but will allow user that want to use it to enable it in their spice options. Reproducible: Always
Ok, so turns out this was added in version 42 and gentoo is only on version 40 which is why it's not there I guess. Also note that in version 43 enabling this option became the default. So if gentoo updates to ngspice-43 then it'll solve this issue automatically. If the update is only made to 42 then this option should be added to configure.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79fc88962cf8975b263e8a86703bfc00de5f155a commit 79fc88962cf8975b263e8a86703bfc00de5f155a Author: Fabio Rossi <rossi.f@inwind.it> AuthorDate: 2024-10-07 12:56:49 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-01 12:09:50 +0000 sci-electronics/ngspice: add latest version 43 - added embedded KLU support Closes: https://bugs.gentoo.org/919371 Closes: https://bugs.gentoo.org/920210 Closes: https://bugs.gentoo.org/922664 Closes: https://bugs.gentoo.org/939955 Signed-off-by: Fabio Rossi <rossi.f@inwind.it> Closes: https://github.com/gentoo/gentoo/pull/38922 Signed-off-by: Sam James <sam@gentoo.org> sci-electronics/ngspice/Manifest | 2 + sci-electronics/ngspice/metadata.xml | 1 + sci-electronics/ngspice/ngspice-43.ebuild | 216 ++++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+)