Grid2op / lightsim2grid

LightSim2grid implements a c++ backend targeting the Grid2Op (https://github.com/rte-france/grid2op) platform.
https://lightsim2grid.readthedocs.io/en/latest/
Mozilla Public License 2.0
49 stars 9 forks source link

Release the gil when computing the powerflow #26

Closed BDonnot closed 2 years ago

BDonnot commented 3 years ago

Is your feature request related to a problem? Please describe.

To allow use of threading in python it would be nice to "release the gil" when making powerflows. This could be done rather easily with the py::call_guard<py::gil_scoped_release>()

Consider doing some benchmark for both single threaded and multi threaded example to see if the performances are worth it.