problem with non-unique temporary path during MPI-run with inline C eps-function

Bug #447309 reported by Emmanuel Lambert on 2009-10-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-meep
Undecided
Unassigned

Bug Description

When using inline C function for the EPS, there can be a problem during MPI-runs (multiple cores) because the temporary path generated by SciPy is not 100% unique. See: http://projects.scipy.org/scipy/ticket/1016
A warkaorund for this bug in scipy-weave is to add the following code to python_meep.py :

import os, socket, tempfile, random
mypid=os.getpid()
myhostname = socket.gethostname()
myrandom = random.randint(0,128000)
tempfile.tempdir = tempfile.gettempdir()+'/%s-%s-%i' %(myhostname,mypid,myrandom)

Bugfix was implemented and tested locally and will be committed to Launchpad soon.

this bug was resolved in revision 18 of branch lp:~emmanuel-lambert/python-meep/intec

Changed in python-meep:
status: New → Fix Committed
Changed in python-meep:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers