<div dir="ltr">Hi Jing,<div><br></div><div>   Make sure to turn on OSMesa support too, see <a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/os_mesa">here</a> or <a href="http://www.paraview.org/Wiki/ParaView_And_Mesa_3D">here</a> for details.  And the fastest offscreen rendering involves using Gallium llvmpipe.  If you're interested in that, the first link has instructions on buidling a version of OSMesa that includes Gallium llvmpipe, as well as how to then compile ParaView to take advantage of it.</div><div><br></div><div>   Hope that helps.</div><div><br></div><div>Cheers,</div><div>Scott</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 10:29 AM, jlih <span dir="ltr"><<a href="mailto:jlih@masonlive.gmu.edu" target="_blank">jlih@masonlive.gmu.edu</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" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Scott, </p>
<p>Thanks for your answers and recommendations. </p>
<p><br>
</p>
<p>When I complied and installed Paraview on my two instances, I turned the Python option ON but did not turn off VTK-USE-X.  I will go ahead to recompile Paraview again and check the Python launcher.
</p>
<p><br>
</p>
<p>Thanks again. </p>
<p>Jing<br>
</p>
<div style="color:rgb(33,33,33)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Scott Wittenburg <<a href="mailto:scott.wittenburg@kitware.com" target="_blank">scott.wittenburg@kitware.com</a>><br>
<b>Sent:</b> Friday, September 5, 2014 12:05 PM<br>
<b>To:</b> jlih<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] Paraviewweb and Amazon EC2 instance: X display, GPU option, parallel visualization, launcher...</font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Hi Jing,
<div><br>
</div>
<div>   I'm responding to your questions inline.  Thanks!</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, Sep 5, 2014 at 8:04 AM, jlih <span dir="ltr"><<a href="mailto:jlih@masonlive.gmu.edu" target="_blank">jlih@masonlive.gmu.edu</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" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Dear all, </p>
<p>I have installed Paraviewweb on an Amazon EC2 GPU instance based on the installation guide at:
</p>
<p><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/paraviewweb_on_aws_ec2</a>. The webpages under "apps"
 can show up correctly. Now I am trying to install the parallel visualization. Here are a few questions I want to verify:</p>
<p><br>
</p>
</div>
</blockquote>
<div>Since the instructions you referenced describe installing a binary version, I assume that's what you did.  However, those instructions assumed an instance with a graphics card, hence all the instructions specific to NVidia.  If you have chosen an instance
 without a graphics card, you can't use the binary installation of ParaView, instead you'll need to compile ParaView yourself with support for OSMesa.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>1. When I run pvpython on the GPU instance, I got the error message saying "bad X display..". I guess this occurs when the instance does not have a "real graphics" card and "off screen rendering" option should be used. My question is will this error affect
 the Paraviewweb application?<br>
</p>
<p><br>
</p>
</div>
</blockquote>
<div>ParaViewWeb is just ParaView with Python turned on.  If you get a binary version, this is already done for you.  If you compile it yourself, make sure to enable Python during the configure stage.  At any rate, yes, ParaViewWeb is affected the same as ParaView
 by not having a graphics card.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>2.  I have installed Paraview (not Paraviewweb) on two other instances (without GPU) which run MPI without any issues. I would like to use those two instances as a part of the parallel visualization framework. Should I install the Paraviewweb on those two
 instances as well? Or I just need to change the machine configuration file to include the two instances?<br>
</p>
<p><br>
</p>
</div>
</blockquote>
<div>If you installed ParaView on those two instances, and if those installations of ParaView include Python, then you're good to go.  Unless they don't have graphics cards and you installed the binary version, as mentioned above.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>3.  It seems GPU is needed for the instance when I configured the Paraviewweb on Amazon  EC2. There is a option for NVIDIA.. But  I read this document:</p>
<p><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/os_mesa" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/os_mesa</a> which says GPU may not be necessary. Is this applicable
 to Amazon EC2 instances?<br>
</p>
<p><br>
</p>
</div>
</blockquote>
<div>Yep, it is.  But again, you have to compile ParaView yourself.  See the guide you referenced above for information on how to do that.  Also there's a ParaView
<a href="http://www.paraview.org/Wiki/ParaView_And_Mesa_3D" target="_blank">wiki page</a> with information on that.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>4.  Launcher (</p>
<p><a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/parallel_app" target="_blank">http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/parallel_app</a>). I'm not sure if I should modify the <strong>
 pw.session.public.fields</strong> if I am going to use the default Parallel example provided by Paraviewweb to start with.
<br>
</p>
<p><br>
</p>
</div>
</blockquote>
<div>The ParaViewWeb on EC2 documentation describes setting up the Jetty launcher, which is totally fine.  In that case, you would set up a few key/vals to allow that launcher to start the server side application you're interested, the parallel visualization
 launcher in your case.  That's all covered in the guide you linked.  Then you would indeed need to make sure you add "file" to those session fields as the documentation states.</div>
<div><br>
</div>
<div>On the other hand, you might want to consider using the Python launcher instead of the Jetty launcher.  It comes within ParaView so you don't have another software stack to worry about, and it has all the same capabilities and more.  For those reasons,
 we currently recommend the Python launcher over the Jetty one.  You can find information about the Python launcher
<a href="http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/py_launcher" target="_blank">
here</a>.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>Sorry about throwing out so many  questions but Paraviewweb is a very interesting application to explore.
</p>
<p><br>
</p>
</div>
</blockquote>
<div>No worries, thanks for your interest!  Hopefully you now have what you need to get started.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Scott </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>Thanks, </p>
<p>Jing <br>
</p>
</div>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>