Commit b31463f
committed
Add nogil declaration to _run_paradiso function
This releases the Python GIL around the low level paradiso solver call.
Hopefully this allows this library and dependent libraries (like SimPEG)
to operate more smoothly in a multi-threaded environment.
This should be safe from a Python object perspective because no Python
objects are created/destroyed/inc-reffed during this call. It could
still be that multiple concurrent calls of this function on the same
data cause undesried results, but hopefully downstream users can apply
concurrency primitives (like locks) as needed.1 parent bbd5658 commit b31463f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| |||
0 commit comments