From Documentation
Jump to: navigation, search
(Using client/server mode through the visualization station)
Line 5: Line 5:
 
}}
 
}}
  
= Visualization Stations =
+
= Running Paraview remotely on Visualization Stations =
  
 
ParaView can be started from the ''applications'' menu (the one in the upper-left hand corner) under the ''graphics'' sub-menu after logging into any of the visualization stations. It can also be launched from the command prompt on any of the visualization stations by typing
 
ParaView can be started from the ''applications'' menu (the one in the upper-left hand corner) under the ''graphics'' sub-menu after logging into any of the visualization stations. It can also be launched from the command prompt on any of the visualization stations by typing
Line 13: Line 13:
 
Adding a <tt>--stereo</tt> option will enable stereo rendering when supported by the hardware.
 
Adding a <tt>--stereo</tt> option will enable stereo rendering when supported by the hardware.
  
= Visualization Stations and your PC =  
+
= Running Paraview in client/server mode =  
  
You can also download ParaView for your PC (Linux, MacOS, and Windows version exist) from the [http://www.paraview.org ParaView Website] (or install it using your package manager under Linux) and use it in client server mode. Note that you must
+
While Running Paraview remotely on viz station is the preferred way,
 +
you can also run it in client/server mode. To do so, you need to
 +
1) download and install ParaView for your PC (Linux, MacOS, and Windows version exist) from the [http://www.paraview.org ParaView Website] (or install it using your package manager under Linux). Note that you must
  
 
* use the same version of ParaView as on the visualization stations, and
 
* use the same version of ParaView as on the visualization stations, and

Revision as of 16:01, 21 April 2015

PARAVIEW
Description: Application designed to visualize data sets of size varying from small to very large
SHARCNET Package information: see PARAVIEW software page in web portal
Full list of SHARCNET supported software


Running Paraview remotely on Visualization Stations

ParaView can be started from the applications menu (the one in the upper-left hand corner) under the graphics sub-menu after logging into any of the visualization stations. It can also be launched from the command prompt on any of the visualization stations by typing

paraview

Adding a --stereo option will enable stereo rendering when supported by the hardware.

Running Paraview in client/server mode

While Running Paraview remotely on viz station is the preferred way, you can also run it in client/server mode. To do so, you need to 1) download and install ParaView for your PC (Linux, MacOS, and Windows version exist) from the ParaView Website (or install it using your package manager under Linux). Note that you must

  • use the same version of ParaView as on the visualization stations, and
  • setup ssh for passwordless login

Linux and MacOS

Place the following in servers.pvsc under .config/ParaView in your home directory (this must be done while ParaView is not running)

<Servers>
  <Server name="SHARCNET" resource="csrc://localhost">
    <CommandStartup>
      <Options>
        <Option name="PV_SERVER_HOST" label="Host" save="true">
          <String default="vdi-fedora20.user.sharcnet.ca"/>
        </Option>
        <Option name="PV_SERVER_PORT" label="Port">
          <Range type="int" min="1024" max="65535" step="1" default="random"/>
        </Option>
        <Option name="PV_NODES" label="CPUs" save="true">
          <Range type="int" min="1" max="16" step="1" default="4"/>
        </Option>
        <Option name="PV_USERNAME" label="Login" save="true">
          <String/>
        </Option>
        <Option name="PV_CONNECT_ID" label="ID" readonly="true">
          <Range type="int" min="1" max="65535" step="1" default="random"/>
        </Option>
      </Options>
      <Command exec="ssh" timeout="0" delay="5">
        <Arguments>
          <Argument value="-x"/>
          <Argument value="-R"/>
          <Argument value="$PV_SERVER_PORT$:localhost:$PV_SERVER_PORT$"/>
          <Argument value="-l"/>
          <Argument value="$PV_USERNAME$"/>
          <Argument value="$PV_SERVER_HOST$"/>
          <Argument value="sh"/>
          <Argument value="-c"/>
          <Argument value="'module load mpi/openmpi-x86_64; DISPLAY=:0 exec mpirun -n $PV_NODES$ pvserver --reverse-connection --client-host=localhost --server-port=$PV_SERVER_PORT$ --connect-id=$PV_CONNECT_ID$'"/>
        </Arguments>
      </Command>
    </CommandStartup>
  </Server>
</Servers>

After adding this file start ParaView. Click the connect icon (third from the the right) or picking connect from the file menu will now bring up a menu that allows you to connect to SHARCNET. Pick SHARCNET and then clicking connect. This will give a menu where you can pick the number of CPUs (more can actually be slower) and enter your SHARCNET login.

If everything goes correctly, you should see csrc://localhost:<number> (where <number> is some number) in your pipeline browser. Data files will now be your SHARCNET files and only state files will be local. Beware that any changes made to servers.pvsc while ParaView is running will be lost.

Windows

A similar file, customized for your ssh setup, must be placed under your applications settings directory, and then the above directions will apply as well.

References

o Paraview Help Documentation
http://www.paraview.org/documentation/

o Sharcnet Paraview Training Document
https://www.sharcnet.ca/Documents/training/scientific_computing/sn_viz_paraview_weiguang.pdf