Multi-threading on multi CPUcore-i7 or core-i5

edited August 2013 in KLayout Support
I noticed that script only use 1 CPU.
How to compile for multi-threading on multi CPU core-i7 or core-i5 ?

Thanks, Kind regards,
Laurent

Comments

  • edited November -1

    Hi Laurent,

    "compiling for multi-threading" isn't just as easy as it seems. First, you'll have to use algorithms that can be put onto multiple CPU's, second you'll have to insert a whole bunch of mutexes and other fancy things into your code at the right places, third you'll have to forget everything you know about deterministic behavior and forth you'll have to be an expert on this thing because otherwise it's pretty easy to turn a stable program into a nightmare of a tool (and I have experienced such cases).

    Bottom line: there are some places where multithreading is supported in KLayout. That's the XOR tool (tiling is easy to parallelize) and the drawing engine. The scripting engine is no such place and there is no way to do so, since the Ruby guys wisely decided not to summon the dark forces from the multithreading hell.

    Matthias

Sign In or Register to comment.