yt itself does not link against an mpi library. Instead, we use mpi4py to handle bindings to the local mpi installation. To be sure that mpi4py is linked against the correct mpi lbirary, you should first uninstall mpi4py:$ pip uninstall mpi4pythen download an mpi4py tarball, unzip it, and build it using the correct sysem MPI$ tar xzvf mpi4py-1.3.1.tar.gz$ python setup.py build --mpicc=/where/you/have/mpicc$ python setup.py installWhen you buid mpi4py, be sure to specify the path to the MPI compiler for the system MPI package you want to link against. For more detail on building mpi4py, check here: http://mpi4py.scipy.org/docs/usrman/install.html#buildingOn Sun, Dec 29, 2013 at 11:54 AM, John Regan <johnanthonyregan@gmail.com> wrote:
Hi Sam,I'm running the script usingsrun pyyt ptest.py --parallelThat could well be picking up the system mpirun rather than the mpi that YT was built with - I hadn't considered that. I'll check that.The traceback is at the link below.The version of YT is the dev version - that's what's sourced when the batch script is run. I've tried with the stable version as well and got thesame result. I think you might be on to something with the mpirun library issue though.Thanks for the tip!John(yt-x86_64)[regan@taito-login3 Projections]$ yt instinfoyt module located at:/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hgThe supplemental repositories are located at:/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-supplementalThe current version of the code is:---ec9a5117fc08---This installation CAN be automatically updated.yt dependencies were last updated onTue Dec 3 17:12:02 EET 2013To update all dependencies, run "yt update --all".On Sun, Dec 29, 2013 at 8:22 PM, Sam Skillman <samskillman@gmail.com> wrote:
Hi John,Can you paste the full traceback using: http://paste.yt-project.org? Also, are you running with mpirun python your_script.py --parallel? The only thought I have at the moment is that there is a mismatch between the MPI you are running mpirun with and the MPI that mpi4py was built with.Also, which version of yt are you using (the results of "yt instinfo")?Thanks,SamOn Sat, Dec 28, 2013 at 11:36 PM, John Regan <johnanthonyregan@gmail.com> wrote:
_______________________________________________Hi All,I've started to see a strange error in a simple enough parallel computation.I can reproduce it with the script below but with some other scripts where the code is embedded it runs fine so it may be a race condition.from yt.mods import *pf = load("/wrk/regan/H2/Ctrl/DD0035/Data0035")v, c = pf.h.find_max("Density")print v, c
Thanks in advance for any help!Cheers,JohnError:Traceback (most recent call last):P001 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)Traceback (most recent call last):File "ptest.py", line 5, in <module>P003 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)File "ptest.py", line 5, in <module>Traceback (most recent call last):File "ptest.py", line 5, in <module>P002 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)Traceback (most recent call last):P004 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)Traceback (most recent call last):File "ptest.py", line 5, in <module>P005 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)Traceback (most recent call last):File "ptest.py", line 5, in <module>P006 yt : [INFO ] 2013-12-29 09:31:27,756 Max Value is 3.67832e-16 at 0.5025423020124483 0.4896353334188484 0.4947452098131160 in grid EnzoGrid_1214 at level 18 (3, 3, 2)Traceback (most recent call last):File "ptest.py", line 5, in <module>Traceback (most recent call last):File "ptest.py", line 5, in <module>Traceback (most recent call last):File "ptest.py", line 5, in <module>File "ptest.py", line 5, in <module>v, c = pf.h.find_max("Density")v, c = pf.h.find_max("Density")v, c = pf.h.find_max("Density")v, c = pf.h.find_max("Density")File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxv, c = pf.h.find_max("Density")File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxv, c = pf.h.find_max("Density")File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxv, c = pf.h.find_max("Density")v, c = pf.h.find_max("Density")v, c = pf.h.find_max("Density")File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 51, in find_maxmg, mc, mv, pos = self.find_max_cell_location(field, finest_levels)mg, mc, mv, pos = self.find_max_cell_location(field, finest_levels)File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 66, in find_max_cell_locationmg, mc, mv, pos = self.find_max_cell_location(field, finest_levels)File "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 66, in find_max_cell_locationFile "/homeappl/home/regan/appl_taito/YT/yt-x86_64/src/yt-hg/yt/data_objects/object_finding_mixin.py", line 66, in find_max_cell_locationmg, mc, mv, pos = self.find_max_cell_location(field, finest_levels)
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org