Bug #900

Envelope task #424: === PythonAPI ===

Custom form factors in python do not work with multithreading

Added by herck over 4 years ago. Updated about 3 years ago.

Status:RejectedStart date:13 Nov 2014
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

History

#1 Updated by herck over 4 years ago

  • Priority changed from Normal to Low

#2 Updated by wuttke over 3 years ago

  • Parent task set to #424

#3 Updated by jmfisher over 3 years ago

This appears to be a consequence of the global interpreter lock in Python, which prevents calls to the Python interpreter from being executed in parallel. Since the inner loops of Simulation::runSimulation() must call CustomFormFactor.evaluate_for_q() via the Python interpreter, the GIL creates a bottleneck which effectively gives single-threaded performance.

#4 Updated by wuttke about 3 years ago

Suggestion: Declare this a feature, update the documentation of CustomFormFactor, and close this issue. Serious work must be done in C++. Only come back to this if it turns out to be limiting for an otherwise productive user.

#5 Updated by wuttke about 3 years ago

  • Status changed from Backlog to Rejected

as agreed in meeting

Also available in: Atom PDF