Bug #900

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

Custom form factors in python do not work with multithreading

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

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


Target version:-


#1 Updated by herck almost 6 years ago

  • Priority changed from Normal to Low

#2 Updated by wuttke almost 5 years ago

  • Parent task set to #424

#3 Updated by jmfisher almost 5 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 over 4 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 over 4 years ago

  • Status changed from Backlog to Rejected

as agreed in meeting

Also available in: Atom PDF