leginon-org / leginon-redmine-archive

1 stars 0 forks source link

runXmippCL2D.py error on 2 processor #1565

Open leginonbot opened 7 months ago

leginonbot commented 7 months ago

Author Name: Anchi Cheng (@anchi2c) Original Redmine Issue: 1565, https://emg.nysbc.org/redmine/issues/1565 Original Date: 2012-02-22 Original Assignee: Anchi Cheng


Traceback (most recent call last): File "/usr/bin/runXmippCL2D.py", line 628, in cl2d.start() File "/usr/bin/runXmippCL2D.py", line 593, in start self.parseOutput() File "/usr/bin/runXmippCL2D.py", line 203, in parseOutput fh=open("xmipp.std","r") IOError: [Errno 2] No such file or directory: 'xmipp.std'

Note: I ran this in redux branch but the error would be the same in trunk.

See that there is a line like this in the code:

if nproc > 2 and mpirun is not None:

Need to handl it better.

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Dmitry Lyumkis (@LyumkisLab) Original Date: 2012-02-23T01:05:54Z


can we just change it to:

if nproc > 1 and mpirun is not None:

or were you specifically thinking of a better way to handle multi-processor jobs?

Dmitry

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Anchi Cheng (@anchi2c) Original Date: 2012-02-23T02:54:01Z


It looks like if the statements in the if control is not done, there will cause error as I saw. If this xmipp function must run with multiple processors, it should give an error at checkConflict stage and exit so that it does break up the stack for nothing. Don't you think that would be more reasonable?

leginonbot commented 7 months ago

Original Redmine Comment Author Name: Dmitry Lyumkis (@LyumkisLab) Original Date: 2012-03-02T06:04:47Z


I added a check for mpi implementation & number of processors in check_conflicts(), which should fix the problem.