Re: [Kicad-developers] Benchmarking kicad compilation on CPUs released 6 years apart
On 30/10/2019 17:37, Seth Hillbrand wrote: > > Two things can help there. First, using the gold linker (if you are not > already) and second, using Ninja. The gold linker is substantially > faster than the BFD linker. I can confirm the above, way faster! > And Ninja is smarter than make about > parallelizing actions. Cmake will happily generate the Ninja files for > you with -GNinja. Didn't know about Ninja, thanks Seth! Tom ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUsreleased 6 years apart
Hi, On Wed, Oct 30, 2019 at 06:49:15PM +0100, Holger Vogt wrote: > Would you mind to switch to tag ngspice-31.3? There have been a lot > of bug fixes an enhancements, many of them initiated by KiCad users. Just did, next MSVC build should use that. Note that we mostly use my MSVC builds for the compiler diagnostics, and almost nobody runs these binaries for real (largely because Python support is missing). They do work whenever I try them, though. Simon ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUsreleased 6 years apart
Do we want to switch to this for the next stable release? If so, what is the procedure for making sure it's tested? Adam On Wed, Oct 30, 2019 at 12:49 PM Holger Vogt wrote: > > Simon, > > I had a quick look at > http://ngspice.sourceforge.net/ngspice-eeschema.html#external , where > you still are still using ngspice-28. > > Would you mind to switch to tag ngspice-31.3? There have been a lot of > bug fixes an enhancements, many of them initiated by KiCad users. So it > might be good to make the improvements available to everybody. > > KiCad for macOS distribution should use this most recent build anyway to > get rid of the annoying crash bug. > > Holger > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUsreleased 6 years apart
Simon, I had a quick look at http://ngspice.sourceforge.net/ngspice-eeschema.html#external , where you still are still using ngspice-28. Would you mind to switch to tag ngspice-31.3? There have been a lot of bug fixes an enhancements, many of them initiated by KiCad users. So it might be good to make the improvements available to everybody. KiCad for macOS distribution should use this most recent build anyway to get rid of the annoying crash bug. Holger ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] doing math on plots
The current eeschema-ngspice interface is very limited. How would one plot, for example, the difference between two vectors? I tried this in a text box: .save foo=(‘v(/input)-v(/output2)’) .tran 10u 50m but "foo" does not show up in the list of vectors to display in the plot window. Here you might have a look at https://forum.kicad.info/t/spice-plotting-difference-of-voltages/19545/2 Another thing, I found that one can use parameters for values, for example {Rx} for a resistor value and then add a textbox with ".param Rx=100k". Would it be possible to simultaneous get plots for a set of different values of Rx? Here you might try external ngspice. KiCad 5.1.x has a direct interface, where you generate a netlist from your circuit and then may call ngspice. This will offer the full ngspice capabilities and plotting via ngspice or gnuplot. I have described an example at http://ngspice.sourceforge.net/ngspice-eeschema.html#external . Unfortunately this interface has disappeared in KiCad 5.9.9 . I still will have to make a wish list bug report to get this back. Holger ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUs released 6 years apart
On 2019-10-30 08:20, Simon Richter wrote: That is more than 1100% CPU usage, with -j12, so very close to full usage. How is that even possible, don't you have that two minute phase at the end of building pcbnew_kiface where it's just building pcbnew_wrap.cxx.o and everything else is done? Simon Two things can help there. First, using the gold linker (if you are not already) and second, using Ninja. The gold linker is substantially faster than the BFD linker. And Ninja is smarter than make about parallelizing actions. Cmake will happily generate the Ninja files for you with -GNinja. Here are the results for my testing with all scripting enabled (Debian Buster) seth@cpu1 (master) % time ninja 4050.50s user 291.35s system 1137% cpu 6:21.85 total Best- Seth Seth Hillbrand KiCad Services Corporation https://www.kipro-pcb.com +1 530 302 5483 | +1 212 603 9372 ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUs released 6 years apart
On 30/10/2019 16:20, Simon Richter wrote: > Hi, > > On Tue, Oct 29, 2019 at 07:00:48PM +0100, Tomasz Wlostowski wrote: > >> $ make -j12 > >> real 7m59.758s >> user 86m44.231s >> sys 5m9.724s > > That is more than 1100% CPU usage, with -j12, so very close to full usage. > > How is that even possible, don't you have that two minute phase at the end > of building pcbnew_kiface where it's just building pcbnew_wrap.cxx.o and > everything else is done? > IIRC pcbnew_wrap.cxx is only generated when Kicad is built with Python support. I never build it with Python enabled ;-). Tom ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUs released 6 years apart
Hi, On Tue, Oct 29, 2019 at 07:00:48PM +0100, Tomasz Wlostowski wrote: > $ make -j12 > real 7m59.758s > user 86m44.231s > sys 5m9.724s That is more than 1100% CPU usage, with -j12, so very close to full usage. How is that even possible, don't you have that two minute phase at the end of building pcbnew_kiface where it's just building pcbnew_wrap.cxx.o and everything else is done? Simon ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Benchmarking kicad compilation on CPUsreleased 6 years apart
Hi, On Tue, Oct 29, 2019 at 05:28:07PM -0400, Brian Piccioni wrote: > Do you use Visual Studio to compile Kicad? If so, how? I’m not very good with > things like cmake and I’ve tried and tried to get KiCad (or even just PCBNew) > to compile with Visual Studio and end up with various problems I can’t solve > like missing packages, etc.. I'm still doing automatic Visual Studio builds on Jenkins, and I think I've found all places where I need to do "@echo on" so all commands show up in the build logs. There is a vcpkg based build[1] that is missing a few packages, but you can probably lift the vcpkg incantations and the cmake integration of vcpkg from there. There is also a everything-from-scratch Visual Studio build[2] that pulls in all required packages as artifacts and gives them to cmake in a way that it understands, which sometimes are cmake variables and sometimes environment variables. I'd probably get started with vcpkg, and then add the missing packages from the everything-from-scratch recipes. The required packages are collected on a separate page[3] on my Jenkins installation. If you really want to do a good deed, you can make vcpkg packages from the missing stuff and submit them. Simon [1] https://jenkins.simonrichter.eu/job/windows-kicad-msvc-vcpkg/ [2] https://jenkins.simonrichter.eu/job/windows-kicad-msvc-head/ [3] https://jenkins.simonrichter.eu/view/MSVC/ ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp