Project

General

Profile

Actions

Bug #1565

open

runXmippCL2D.py error on 2 processor

Added by Anchi Cheng about 12 years ago. Updated about 12 years ago.

Status:
In Test
Priority:
Normal
Assignee:
Category:
Python scripting
Target version:
Start date:
02/22/2012
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.2.0 (trunk)
Show in known bugs:
No
Workaround:

Description

Traceback (most recent call last):
File "/usr/bin/runXmippCL2D.py", line 628, in <module>
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.

Actions #1

Updated by Dmitry Lyumkis about 12 years ago

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

Actions #2

Updated by Anchi Cheng about 12 years ago

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?

Actions #3

Updated by Dmitry Lyumkis about 12 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Dmitry Lyumkis to Anchi Cheng

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

Actions #4

Updated by Anchi Cheng about 12 years ago

  • Status changed from In Code Review to In Test
Actions

Also available in: Atom PDF