jit doesn't like threading?!?
Hi,
I tried to distribute my computations on several threads using the python threading module. Everything works fine using a single thread. But it seems to me that jit is somehow confused by adding an additional thread. As I am not quite well informed about the jit module I would like to know if somebody has already seen this before or knows about this constraint. It would help a lot if somebody knows for sure that this should work fine (or perhaps not).
Thanks a lot!
Thomas
--------
> python main.py
Thread-1 working!
Thread-2 working!
Solving linear variational problem.
Solving linear variational problem.
3 cells out of 6 marked for refinement (50.0%).
Number of cells increased from 6 to 10 (66.7% increase).
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File ".../methods.py", line 74, in run
eta, eta_list = afem_estimate(
File ".../methods.py", line 206, in afem_estimate
eta_E = assemble(eta_e, mesh=space.mesh())
File "/usr/lib/
common_
File "/usr/lib/
common_cell)
File "/usr/lib/
return local_jit(*args, **kwargs)
File "/usr/lib/
return jit_compile(form, parameters=p, common_
File "/usr/lib/
return jit_form(object, parameters, common_cell)
File "/usr/lib/
module = instant.
File "/usr/lib/
return check_disk_
File "/usr/lib/
release_
File "/usr/lib/
lockname = _lock_names[
ValueError: I/O operation on closed file
Solving linear variational problem.
5 cells out of 10 marked for refinement (50.0%).
Number of cells increased from 10 to 18 (80.0% increase).
Solving linear variational problem.
8 cells out of 18 marked for refinement (44.4%).
Number of cells increased from 18 to 30 (66.7% increase).
Solving linear variational problem.
12 cells out of 30 marked for refinement (40.0%).
Number of cells increased from 30 to 57 (90.0% increase).
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Thomas Fraunholz
- Solved:
- Last query:
- Last reply: