[yt-users] inline yt in parallel

Christine Simpson csimpson at astro.columbia.edu
Thu Apr 11 22:10:36 PDT 2013


Hi Matt,

So I put some print statements into yt/mods.py.  It does not get past this line (the print statement before it prints on all processors, the one after it doesn't print at all):

from yt.data_objects.api import \
    BinnedProfile1D, BinnedProfile2D, BinnedProfile3D, \
    data_object_registry, \
    derived_field, add_field, add_grad, FieldInfo, \
    ValidateParameter, ValidateDataField, ValidateProperty, \
    ValidateSpatial, ValidateGridType, \
    TimeSeriesData, AnalysisTask, analysis_task, \
    ParticleTrajectoryCollection, ImageArray

This is what gets output:

INITIALIZATION TIME =   4.36470985e-01
yt : [DEBUG    ] 2013-04-11 20:44:55,716 Set log level to 1
yt : [DEBUG    ] 2013-04-11 20:44:55,719 Set log level to 1
yt : [DEBUG    ] 2013-04-11 20:44:55,720 Set log level to 1
yt : [DEBUG    ] 2013-04-11 20:44:55,931 SIGUSR1 registered for traceback printing
yt : [DEBUG    ] 2013-04-11 20:44:55,931 SIGUSR2 registered for IPython Insertion
yt : [DEBUG    ] 2013-04-11 20:44:55,931 SIGUSR1 registered for traceback printing
yt : [DEBUG    ] 2013-04-11 20:44:55,931 SIGUSR2 registered for IPython Insertion
yt : [DEBUG    ] 2013-04-11 20:44:55,932 SIGUSR1 registered for traceback printing
yt : [DEBUG    ] 2013-04-11 20:44:55,932 SIGUSR2 registered for IPython Insertion
yt : [INFO     ] 2013-04-11 20:44:55,946 Global parallel computation enabled: 2 / 3
Point1
yt : [INFO     ] 2013-04-11 20:44:55,947 Global parallel computation enabled: 0 / 3
yt : [INFO     ] 2013-04-11 20:44:55,947 Global parallel computation enabled: 1 / 3
Point1
Point1
Point2
Point3
Point2
Point3
Point2
Point3
P001 yt : [WARNING  ] 2013-04-11 20:44:55,993 Log Level is set low -- this could affect parallel performance!
P000 yt : [WARNING  ] 2013-04-11 20:44:55,993 Log Level is set low -- this could affect parallel performance!
P002 yt : [WARNING  ] 2013-04-11 20:44:55,993 Log Level is set low -- this could affect parallel performance!
MPI process (rank: 1) terminated unexpectedly on trestles-10-27.local
Exit code -5 signaled from trestles-10-27

I tried importing just one item at a time from yt/data_objects/api but all the ones I tried failed.  If I comment out the line, the subsequent import statement fails.

I tested importing h5py, and that worked fine.

Christine




On Apr 11, 2013, at 8:49 PM, Matthew Turk wrote:

> Awesome.  This tells us a *lot* of information.  For starters,
> importing numpy and having that fail is a very common use case that
> can be difficult to fix.  Fortunately, that's not the case here!  :)
> So here's a good start -- in the directory ~/.yt you may or may not
> have a file named 'config'.  If you add to that file something like:
> 
> [yt]
> loglevel: 1
> 
> then you can get a lot more info about how things proceed.  For me it
> looks like this:
> 
> http://paste.yt-project.org/show/3357/
> 
> The next step is to put print statements in yt/mods.py around these areas:
> 
> http://paste.yt-project.org/show/3358/
> 
> Speciffically, I'm curious if it gets past startup tasks.  After that,
> there is a series of import blocks that look like:
> 
> from yt.something \
>    import flux_capacitor
> 
> or something.  Each of these blocks might be grabbing something.
> 
> Now, one very *last* thing is, can you run one last script identical
> to the ones before, except test to see if h5py can be imported?  It
> occurs to me that's another source of error that might be pernicious.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130412/f348c3ea/attachment.htm>


More information about the yt-users mailing list