Multi-threading with macros

Is thee a way to run several macros with different threads ?
I have large GDS file and would like to run time consuming macro on different layers.
Then, I would like to run 1 macro per layer in parallel in order to use multi-threading.
Is there a way to run klayout macros in this way ?


  • Hi Laurent,

    no there isn't. Both Ruby and Python aren't thread-safe, so that's not feasible. You can run parallel instances of KLayout and finally merge the layouts.


  • hi Laurent,

    If you want to use threading I think you should build your function from source code of Klayout after that re-build Klayout.


Sign In or Register to comment.