<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 26, 2014 at 8:09 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everyone. Is it normal for slices to take substantially longer to be created if they're made from a derived field rather than an intrinsic one?<div><br></div><div>Specifically, I'm having an issue creating an axis-aligned slice using the divergence of the velocity field. It's taking around 6.5 minutes just to make the slice, whereas if I use temperature or density, it takes around 10 seconds or so for the same dataset.</div></div></blockquote><div><br></div><div>Velocity divergence is particularly expensive because it needs ghost zones, which must be filled in using cascading interpolation. Depending on the AMR structure in your data, this might be quite expensive.</div><div><br></div><div>That said, 6.5 minutes for a slice is pretty bad.  </div><div><br></div><div>Is there any chance you can profile the execution of your script? If you run your script like so:</div><div><br></div><div>$ python -m cProfile myscript.py</div><div><br></div><div>you should get a summary printed to stdout of where the interpreter is spending most of its time. You can also visualize this in more depth if you dump the profile data to a file, and then use pyprof2html or snakeviz to load and display the data, e.g:</div><div><br></div><div>$ python -m cProfile -o out.cprof myscript.py</div><div>$ pyprof2html out.cprof</div><div><br></div><div>cProfile comes with pyhon, but pyp4orf2html and snakeviz must be installed separately using pip.</div><div><br></div><div>It would be great if you could file an issue about this.  Even better if you can reproduce it using one of the test datasets on <a href="http://yt-project.org/data">yt-project.org/data</a> and attach a script that we can run ourselves.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I also notice that the amount of time it takes is not dependent on the number of processors I'm using. I've used 1, 12, and 24 processors, with identical results, even though I'm calling enable_parallelism(), and I can see that all the processes are running.</div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I read in the docs that slice operations aren't generally done in parallel, but in this case it seems that maybe it would be beneficial. A similar operation in VisIt completes much faster, so I'm wondering if I've misconfigured something, or if there is something I can do to speed things up.</div><div><br></div><div>I'd appreciate any thoughts anyone has on the subject.</div><div><br></div><div>Thanks,</div><div><br></div><div>Dan</div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>