Hum… I used the ipcluster command on the vis node I’m usingAnd I get through all your init steps:In [1]:from IPython.parallel import Clientrc = Client()In [2]:rc.idsOut[2]:[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]In [3]:%autopx%autopx enabledIn [4]:from mpi4py import MPIMPI.COMM_WORLD.Get_rank()Out[0:1]: 8Out[1:1]: 1Out[2:1]: 14Out[3:1]: 7Out[4:1]: 9Out[5:1]: 15Out[6:1]: 6Out[7:1]: 12Out[8:1]: 4Out[9:1]: 0Out[10:1]: 5Out[11:1]: 10Out[12:1]: 2Out[13:1]: 11Out[14:1]: 3Out[15:1]: 13In [5]:But then it can’t find yt!!import ytyt.enable_parallelism()import numpy as npimport osimport shutilimport h5pyimport gcimport globAttributeError Traceback (most recent call last)<ipython-input-3-915313e529f2> in <module>() ----> 1 import yt...
Weird tho … cuz if I kill the cluster and try again, import YT loads… Can you think of anything obvious? It’s like my path to yt goes away once I start the cluster … and I’m getting some default version (old) on stampede.Thanks Nathan .. I’m watching the tutorial now …On Jan 17, 2015, at 12:54 PM, Rick Sarmento <rsarment@asu.edu> wrote:Thanks for the info Nathan…I’m trying to use STAMPEDE out at Texas (http://vis.tacc.xsede.org/), and they have a way to kick-off access to their 16 core visualization nodes via the web… But that probably doesn’t help given the info below. I’ll try to work with support to see how I can get it to work…If I start the cluster using your instructions (via a ssh session), below, I’d have to login — but then I can’t get remote access to the notebook interface because of the firewalls, etc. Although there’s like a way to setup an ssh tunnel, I haven’t figured it out yet.Thx!Hi Rick,
You need to launch the notebook in parallel using an MPI parallel IPython cluster. In addition, you will need to configure the notebook to hook into IPython's built-in parallelism.I've uploaded a notebook that uses parallel IPython here:Note that all the yt operations aren't really important, but the first few cells where I check to make sure IPython's parallelism works and that MPI parllelism is working are quite important.Note also that you will need to launch the IPython cluster separately from the notebook server using the "ipcluster" command.If you want to learn more about parallel IPython, I'd encourage you to take a look at Min Ranger-Kelley's tutorial from scipy 2014: http://pyvideo.org/video/2738/interactive-parallel-computing-with-ipython-partAll that said, it does add a significant amount of semantic overhead to use the IPython notebook in parallel. It's generally much more straightforward to work with yt in parallel using regular python scripts.Hope that helps,Nathan