Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 939955 - sci-electronics/ngspice Enable KLU solver
Summary: sci-electronics/ngspice Enable KLU solver
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 922664
Blocks:
  Show dependency tree
 
Reported: 2024-09-21 07:53 UTC by Sylvain Munaut
Modified: 2024-12-01 12:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain Munaut 2024-09-21 07:53:50 UTC
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
Comment 1 Sylvain Munaut 2024-09-21 08:48:05 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2024-12-01 12:12:36 UTC
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(+)