Might be worth sending a message to the triton sysadmins too.<span></span><br><br>On Monday, August 10, 2015, John Wise <<a href="mailto:jwise@physics.gatech.edu">jwise@physics.gatech.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Bili.  There could have been some loose ends in the system version.  I was confused because this shouldn't have happened with the install script, but this sort of clears things up.<br>
<br>
Thanks again!<br>
John<br>
<br>
On 08/10/2015 10:03 PM, Bili Dong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi John,<br>
<br>
Previously I was using the default mpl provided by the system. Then I installed a local version using `pip install --user matplotlib` without specifying -DNDEBUG explicitly, after which the slowdown was gone. I guess somehow the system default version missed the -DNDEBUG flag while compiling. But I don’t know the details.<br>
<br>
Regards,<br>
Bili<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Aug 10, 2015, at 6:54 PM, John Wise <<a>jwise@physics.gatech.edu</a>> wrote:<br>
<br>
Hi,<br>
<br>
I just wanted to follow-up with a question since -DNDEBUG should be specified by default from the Python installation.  Does anyone know why CPPFLAGS wasn't passed into mpl's setup.py?<br>
<br>
Bili, did you install yt with the install_script or on top of the system's or module's Python stack?<br>
<br>
Thanks,<br>
John<br>
<br>
On 08/10/2015 09:27 PM, Bili Dong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I reinstalled matplotlib and it works. Thanks Kacper! You saved my life!<br>
<br>
-Bili<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Aug 10, 2015, at 4:30 PM, Kacper Kowalik <<a>xarthisius.kk@gmail.com</a>> wrote:<br>
<br>
On 08/10/2015 05:10 PM, Bili Dong wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi yt-users,<br>
<br>
I’m using yt-3.2 (Changeset = 329b5039b031 stable).<br>
<br>
The problem is that the same script that could finish in seconds on my local machine will take much  (order of magnitude) longer time to run on the server I’m using. In some cases, it get stuck for hours that I don’t know if it will ever finish. I’ve tracked down the bottleneck to be the `annotate_contour` method. The server should be faster than my local machine. (I’m not exactly sure about how to compare it. But the server is generally much faster in other situations.)<br>
<br>
For example, for this script (<a href="http://paste.yt-project.org/show/5808/" target="_blank">http://paste.yt-project.org/show/5808/</a> <<a href="http://paste.yt-project.org/show/5808/" target="_blank">http://paste.yt-project.org/show/5808/</a>>), on my local machine the output shows:<br>
<br>
```<br>
yt : [INFO     ] 2015-08-10 14:48:15,401 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800<br>
yt : [INFO     ] 2015-08-10 14:48:15,751 Saving plot snapshot_200_Projection_z_density.png<br>
yt : [INFO     ] 2015-08-10 14:48:16,716 Saving plot snapshot_200_Projection_z_density.png<br>
```<br>
<br>
However, on the server the output shows:<br>
```<br>
yt : [INFO     ] 2015-08-10 14:51:25,551 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800<br>
yt : [INFO     ] 2015-08-10 14:51:25,917 Saving plot snapshot_200_Projection_z_density.png<br>
yt : [INFO     ] 2015-08-10 14:56:21,922 Saving plot snapshot_200_Projection_z_density.png<br>
```<br>
<br>
That’s 296 times slower!!!<br>
<br>
This is likely to be a very specific problem with the server. But I’d like to know if anyone else has encountered similar problems before so I can learn from your experience. For now, I have no idea what could have gone wrong.<br>
<br>
BTW, I’m using TSCC (<a href="http://idi.ucsd.edu/computing/" target="_blank">http://idi.ucsd.edu/computing/</a> <<a href="http://idi.ucsd.edu/computing/" target="_blank">http://idi.ucsd.edu/computing/</a>>) at UC San Diego, if you happen to know it.<br>
<br>
Thanks,<br>
Bili<br>
</blockquote>
<br>
Hi Bili,<br>
make sure you pass "-DNDEBUG" to CPPFLAGS when you compile matplotlib.<br>
Without it mpl is a good cpu cycle burner.<br>
There's a debug routine in triangulation module that's enabled by default.<br>
Cheers,<br>
Kacper<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
</blockquote>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
<br>
--<br>
John Wise<br>
Assistant Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" target="_blank">http://cosmo.gatech.edu</a><br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
</blockquote>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
<br>
-- <br>
John Wise<br>
Assistant Professor of Physics<br>
Center for Relativistic Astrophysics, Georgia Tech<br>
<a href="http://cosmo.gatech.edu" target="_blank">http://cosmo.gatech.edu</a><br>
_______________________________________________<br>
yt-users mailing list<br>
<a>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>
</blockquote>