{"id":343,"date":"2013-04-26T12:39:17","date_gmt":"2013-04-26T12:39:17","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/?page_id=343"},"modified":"2016-11-25T12:47:00","modified_gmt":"2016-11-25T12:47:00","slug":"paraview","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/paraview\/","title":{"rendered":"ParaView"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"http:\/\/www.paraview.org\">ParaView<\/a> is an open-source, multi-platform data analysis and visualization application. Versions 3.14.1 and 4.0.1 were compiled on the CSF using gcc (default version) and OpenMPI 1.6. The 3.14.1 installation includes ParaView development files and the Paraview GUI. Version 4.0.1 contains only the <code>pvserver<\/code> and <code>pvbatch<\/code> off-screen executables only.<\/p>\n<p>ParaView will <strong>not<\/strong> use any GPU hardware in the CSF. Instead all rendering is performed in software on the compute nodes.<\/p>\n<p>There are three ways to run ParaView:<\/p>\n<ol class=\"gaplist\">\n<li>The preferred method of running ParaView is to install and run the GUI (<code>paraview<\/code>) on <strong>your local PC<\/strong> and run the parallel processing and rendering part of ParaView (<code>pvserver<\/code> processes) on the CSF in batch. Your local copy of <code>paraview<\/code> will then connect to the CSF and use the <code>pvserver<\/code> processes. This is efficient because only the final rendered image is sent to your PC over the network (no remote X11 used). Your datasets (which could be huge) are stored and processed entirely on the CSF. The remainder of this page describes this method.<\/li>\n<li>Running the <code>paraview<\/code> GUI on the CSF over a remote X connection: this is <em>not<\/em> the best way to run ParaView. However, if you cannot install ParaView on your local PC then this method will work. But <strong>do not<\/strong> simply run <code>paraview<\/code> on the login node.  Please follow the <a href=\"\/csf-apps\/software\/applications\/paraview\/remotex\">instructions<\/a> for running everything on the CSF.<\/li>\n<li>For non-interactive (scripted) use, the <code>pvbatch<\/code> executable is available. See <a href=\"#pvbatch\">below<\/a> for how to run this process in batch.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<table style=\"text-align: center; width:66%; margin-left:22%; margin-right:22%;\">\n<tr>\n<td><em>Please do not run ParaView directly on the login node. Such processes will be killed without warning.<\/em><\/td>\n<\/tr>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>Restrictions on use<\/h2>\n<p>There are no access restrictions as it is free software.<\/p>\n<p><a name=\"localinstall\"><\/a><\/p>\n<h2>Installing ParaView on your local PC<\/h2>\n<p>You are going to run the <code>paraview<\/code> GUI on your PC and connect it to the CSF. To install ParaView on your PC please download <strong>version 4.0.1<\/strong> or <strong>version 3.14.1<\/strong> from the <a href=\"http:\/\/www.paraview.org\/paraview\/resources\/software.php\">ParaView Download page<\/a> for your platform. You can use the Windows\/Linux 32\/64bit versions.<\/p>\n<p>Once installed on your PC, do not run ParaView just yet. You first need to start the <code>pvserver<\/code> MPI job on the CSF and then set up an SSH tunnel on your PC. Full instructions are given below.<\/p>\n<h2>Running pvserver in batch on the CSF<\/h2>\n<p>The <code>pvserver<\/code> MPI processes can be run on multiple compute nodes with fast InfiniBand networking (for large jobs) or a single compute node for smaller jobs. When using InfiniBand connected nodes there is a minimum number of processes and the number must be a multiple of 12 or 24 depending which nodes are used &#8211; see example jobscripts below for details. On a single compute node a smaller number of cores can be used (up to 24 cores).<\/p>\n<p>See the <a href=\"#hints\">Paraview Hints<\/a> below for how to work out how many cores to run.<\/p>\n<p>The modulefile to load and a suitable jobscript for each option are described below. Choose one of these. The modulefile will also load the appropriate MPI and python modules.<\/p>\n<p>Note: If you&#8217;ve attended the <a href=\"http:\/\/wiki.rcs.manchester.ac.uk\/community\/Courses\/ParaView\">ParaView Course<\/a> and have a temporary course account you should choose the <a href=\"#pvserversmp\">SMP single-node method<\/a>.<\/p>\n<h3>pvserver over InfiniBand (large multi-node jobs)<\/h3>\n<p>Setup the environment by loading an InfiniBand version of the available modulefiles &#8211; choose one:<\/p>\n<pre>module load apps\/gcc\/paraview\/4.0.1-ib<\/pre>\n<p>or<\/p>\n<pre>module load apps\/gcc\/paraview\/3.14.1-ib<\/pre>\n<p>Create the following jobscript (e.g., naming it <code>pvserver-ib.sh<\/code>):<\/p>\n<pre>\r\n#!\/bin\/bash\r\n#$ -S \/bin\/bash\r\n#$ -V\r\n#$ -cwd\r\n\r\n#$ -pe orte-24-ib.pe 48   # Change number of cores, must be 48 or more\r\n                          # and a multiple of 24.\r\n\r\n#### Run pvserver ($NSLOTS is automatically set to number of cores given above)\r\n\r\nmpirun -n $NSLOTS pvserver --use-offscreen-rendering\r\n\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nqsub <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvserver-ib.sh<\/code>)<\/p>\n<p><a name=\"pvserversmp\"><\/a><\/p>\n<h3>pvserver in SMP (small single-node jobs)<\/h3>\n<p>Setup the environment by loading an non-InfiniBand version of the available modulefiles &#8211; choose one:<\/p>\n<pre>module load apps\/gcc\/paraview\/4.0.1<\/pre>\n<p>or<\/p>\n<pre>module load apps\/gcc\/paraview\/3.14.1<\/pre>\n<p>Create the following jobscript (e.g., naming it <code>pvserver.sh<\/code>):<\/p>\n<pre>\r\n#$ -S \/bin\/bash\r\n#$ -V\r\n#$ -cwd\r\n#$ -pe smp.pe 4         # Change number of cores (max 24)\r\n\r\n#$ -l short             #  Optional (max 12 cores) - depends how long you'll\r\n                        #  leave your local paraview GUI running.\r\n\r\n#### Run pvserver ($NSLOTS is automatically set to number of cores given above)\r\n\r\nmpirun -n $NSLOTS pvserver --use-offscreen-rendering\r\n\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nqsub <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvserver.sh<\/code>)<\/p>\n<h3>Find where the pvserver batch job runs<\/h3>\n<p>You must now <strong>wait<\/strong> until the pvserver jobs are running. Use <code>qstat<\/code> to check the job queue. Once the <code>state<\/code> reported by <code>qstat<\/code> has changed from <code>qw<\/code> to <code>r<\/code> you will see something like:<\/p>\n<pre>\r\njob-ID  prior   name     user     state submit\/start at     queue                          slots \r\n------------------------------------------------------------------------------------------------\r\n5724  0.05534 pvserver.q xxxxxxxx r     08\/28\/2012 17:06:57 C6220-II-STD.q@<strong>node537<\/strong>.prv.csf     4\r\n<\/pre>\n<p>Make a note of the <strong>queue<\/strong> value, specifically the <strong>hostname<\/strong> after the <strong>@<\/strong>. In this example we see <strong><code>node537<\/code><\/strong> (you don&#8217;t need the <code>.prv.csf....<\/code>). <\/p>\n<p>We are now going to run the <code>paraview<\/code> GUI on your local PC and connect it to the <code>pvserver<\/code> batch job.<\/p>\n<h2>Running paraview On Your Local PC and Connecting to CSF<\/h2>\n<p>This is a two step procedure<\/p>\n<ol>\n<li>Set up the SSH tunnel to the CSF (if off campus run the VPN first)<\/li>\n<li>Run <code>paraview<\/code> and connect to the SSH tunnel<\/li>\n<\/ol>\n<p>Separate instructions are given for Windows and Linux. At this stage you must have ParaView installed on your local PC (<a href=\"#localinstall\">see above<\/a>).<\/p>\n<h3>SSH Tunnel on Linux<\/h3>\n<p>In a shell on <strong>your<\/strong> PC, create a tunnel between your local port 11111 and the CSF backend node&#8217;s port 1111 where <code>pvserver<\/code> is running. This will go via the CSF login node. In this example we assume the <code>pvserver<\/code> is running on node <strong><code>node537<\/code><\/strong>.<\/p>\n<ul style=\"list-style-type: none\">\n<li><code>ssh -L 11111:<\/code><em>node537<\/em><code>:11111 <\/code><em>username<\/em><code>@csf2.itservices.manchester.ac.uk<\/code><\/li>\n<\/ul>\n<p>where <em>username<\/em> is your CSF username and <em>node537<\/em> is the node where <code>pvserver<\/code> is running (use <code>qstat<\/code> on the CSF to find out). <strong>Do not close this shell<\/strong>. This connection must remain open to use ParaView. You do <strong>not<\/strong> need to type any commands in to this shell.<\/p>\n<p>Now open a <strong>new<\/strong> shell window on <strong>your<\/strong> PC and start <code>paraview<\/code> as follows:<\/p>\n<pre>paraview --server-url=cs:\/\/localhost:11111<\/pre>\n<p>ParaView will connect to the <code>pvserver<\/code> processes through your local port 11111. This has been tunnelled to the CSF backend node where the processes are actually running.<\/p>\n<p>Now jump to <a href=\"#rensettings\">A Quick Test and Render Settings<\/a> to ensure everything is working correctly.<\/p>\n<h3>SSH Tunnel on Windows<\/h3>\n<p>You must have an SSH client, such as MobaXterm or PuTTY, installed. You do not need an X-server installed because we are going to run a locally installed Windows version of ParaView.<\/p>\n<p>If using MobaXTerm, start MobaXTerm on your PC then simply copy the <code>ssh<\/code> command given in the Linux instructions above in to the black MobaXTerm window (don&#8217;t forget to use the appropriate node name &#8211; e.g., <code>node537<\/code> and so on &#8211; appropriate to your job &#8211; see above).<\/p>\n<p>If using PuTTY, it is a little more complicated to set up the SSH tunnel. Follow the instructions below:<\/p>\n<ol>\n<li><strong>Note<\/strong>: in the screen-shots below we use <code>int00<\/code> as the name of the compute node where our CSF job is running. Replace <code>int00<\/code> with the value you noted in the previous section (e.g., <code>node537<\/code>). We used to have nodes named <code>int00<\/code> and so on but your CSF job could be running on another node.<\/li>\n<li>Start PuTTY and edit the <em>Tunnels<\/em> settings to use <code>Source port: 11111<\/code> and <code>Destination: <\/code><strong><code>int00<\/code><\/strong><code>:11111<\/code> where <strong><code>int00<\/code><\/strong> is the node on which <code>pvserver<\/code> is running, noted earlier (use <code>qstat<\/code> on the CSF to find out).<\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd01.png\" alt=\"PuTTY local port forwarding\" width=\"456\" height=\"435\" class=\"aligncenter size-full wp-image-344\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd01.png 456w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd01-300x286.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/li>\n<\/ul>\n<li>Now use PuTTY to connect to the CSF login node using Host Name:\n<pre> csf2.itservices.manchester.ac.uk<\/pre>\n<\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd03.png\" alt=\"PuTTY CSF login\" width=\"456\" height=\"435\" class=\"aligncenter size-full wp-image-345\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd03.png 456w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/putty-pfwd03-300x286.png 300w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><\/li>\n<\/ul>\n<li>If a PuTTY security window pops up, click on <strong>Yes<\/strong><\/li>\n<li>Enter your CSF username and password when prompted<\/li>\n<li><strong>Do not close this window<\/strong>. This connection must remain open to use ParaView. You do <strong>not<\/strong> need to type any commands in to this window.<\/li>\n<\/ol>\n<h3>Run the Paraview GUI<\/h3>\n<p>Now start your local installation of <code>paraview<\/code>. Once the GUI has appeared do the following:<\/p>\n<ol>\n<li>Go to <em>File<\/em> > <em>Connect<\/em><\/li>\n<li>In the <em>Choose Server Configuration<\/em> window that pops up, select <strong>Add Server<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect02.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect02.png\" alt=\"Paraview Launch Configuration\" width=\"536\" height=\"284\" class=\"aligncenter size-full wp-image-346\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect02.png 536w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect02-300x158.png 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/a><\/li>\n<\/ul>\n<li>Fill in the form to connect to your local port 1111 using the following then hit <strong>Configure<\/strong>:<\/li>\n<ul>\n<li>Name: <code>localhost<\/code><\/li>\n<li>Server Type: <code>Client \/ Server<\/code><\/li>\n<li>Host: <code>localhost<\/code><\/li>\n<li>Port: <code>11111<\/code><\/li>\n<\/ul>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect03.png\" alt=\"Paraview Edit Server Configuration\" width=\"534\" height=\"197\" class=\"aligncenter size-full wp-image-347\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect03.png 534w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect03-300x110.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/a><\/li>\n<\/ul>\n<li>In the <em>Server Launch Configuration<\/em> window ensure <strong>Manual<\/strong> is selected and hit <strong>Save<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect04.png\" alt=\"ParaView Launch Configuration\" width=\"534\" height=\"266\" class=\"aligncenter size-full wp-image-348\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect04.png 534w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect04-300x149.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/a><\/li>\n<\/ul>\n<li>Now select your saved configuration and hit <strong>Connect<\/strong><\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect05.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect05.png\" alt=\"ParaView Server connection\" width=\"534\" height=\"266\" class=\"aligncenter size-full wp-image-349\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect05.png 534w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-connect05-300x149.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/a><\/li>\n<\/ul>\n<\/ol>\n<p>ParaView will connect to the <code>pvserver<\/code> processes through your local port 11111. This has been tunnelled to the CSF backend node where the processes are actually running.<\/p>\n<p>Now jump to <a href=\"#rensettings\">A Quick Test and Render Settings<\/a> to ensure everything is working correctly.<\/p>\n<p><a name=\"rensettings\"><\/a><\/p>\n<h2>A Quick Test and Render Settings<\/h2>\n<p>A quick test to see that your local <code>paraview<\/code> is really connected to the CSF is to see where <code>paraview<\/code> will load files from:<\/p>\n<ol>\n<li>Go to the <em>File<\/em> > <em>Open<\/em> menu to begin loading a dataset<\/li>\n<li>You will see that the file browser is showing files on the CSF, <em>not your local PC&#8217;s files<\/em>. This is correct. We are using the CSF to run multiple <code>pvserver<\/code> processes and so we want those processes to read your large datasets stored on the CSF.<\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf03.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf03.png\" alt=\"Loading files from the CSF\" width=\"599\" height=\"262\" class=\"aligncenter size-full wp-image-350\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf03.png 599w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf03-300x131.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/li>\n<\/ul>\n<\/ol>\n<p>To ensure your local <code>paraview<\/code> client does no rendering work you should change the render settings in <code>paraview<\/code>. The default is to have your PC do a little bit of rendering work. We don&#8217;t want it to do any to save transferring data from the CSF to your PC. <\/p>\n<ol>\n<li>In the <code>paraview<\/code> GUI go to <em>Edit<\/em> > <em>Settings&#8230;<\/em><\/li>\n<li>In the <em>Render View<\/em> > <em>Server<\/em> panel, slide the <em>Remote Render Threshold<\/em> to zero (left). <strong>Do not uncheck<\/strong> the slider. This will cause <strong>all<\/strong> rendering to be done on <strong>your<\/strong> PC!<\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-render-settings01.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-render-settings01.png\" alt=\"ParaView Remote Render Settings\" width=\"651\" height=\"522\" class=\"aligncenter size-full wp-image-351\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-render-settings01.png 651w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-render-settings01-300x240.png 300w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/li>\n<\/ul>\n<\/ol>\n<p>Another useful way of checking what the remote <code>pvserver<\/code> processes are doing is to load a dataset and then shade the data according to the processor ID on which the data is residing (ParaView distributes your dataset amongst the <code>pvserver<\/code> processes).<\/p>\n<ol>\n<li>Go to the <em>Filters<\/em> > <em>Alphabetical<\/em> menu and select <em>Process Id Scalars<\/em>. In the <em>Properties<\/em> tab hit <em>Apply<\/em> to see your dataset rendered with a different colour for each <code>pvserver<\/code> process. This shows how the data has been distributed amongst the processes.<\/li>\n<ul style=\"list-style-type: none\">\n<li><a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf04-small.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf04-small.png\" alt=\"Data shaded by Process ID\" width=\"600\" height=\"363\" class=\"aligncenter size-full wp-image-352\" srcset=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf04-small.png 600w, https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-content\/uploads\/pv-csf04-small-300x181.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/li>\n<\/ul>\n<\/ol>\n<h2>Exit and Clean up<\/h2>\n<p>Exiting from the <code>paraview<\/code> GUI will stop the backend <code>pvserver<\/code> processes, at which point you will have no ParaView jobs running in the batch system.<\/p>\n<p>If the <code>paraview<\/code> GUI freezes or hangs it usually indicates a problem with the backend <code>pvserver<\/code> processes. Check the <code>pvserver.sh.o<\/code><em>NNNNN<\/em> or <code>pvserver.sh.e<\/code><em>NNNNN<\/em> log files created by the batch job (the <code>pvserver.sh<\/code> name will actually be what ever your jobscript was called). The most common problem is that the <code>pvserver<\/code> processes run out of memory because you don&#8217;t have enough running for the size of your dataset. <\/p>\n<p>If your local <code>paraview<\/code> GUI crashes you should run <code>qstat<\/code> on the CSF to check if the <code>pvserver<\/code> processes are still running. If so, use <code>qdel<\/code> <em>NNNNNN<\/em> to kill the batch job.<\/p>\n<p><a name=\"pvbatch\"><\/a><\/p>\n<h2>Running non-interactive (scripted) pvbatch (large datasets)<\/h2>\n<p>The <code>paraview<\/code> GUI should <strong>not<\/strong> be running at this point.<\/p>\n<p>After loading the ParaView modulefile use a jobscript to launch the <code>pvbatch<\/code> MPI processes. For example, to launch 4 backend processes, create the following jobscript (e.g., naming it pvbatch.sh):<\/p>\n<pre>\r\n#$ -S \/bin\/bash\r\n#$ -V\r\n#$ -cwd\r\n#$ -pe smp.pe 4  # pvbatch is an MPI app so can also use:\r\n                 # orte-24-ib.pe for multiples of 24 cores\r\n                 # (use with the apps\/gcc\/paraview\/4.0.1-ib or \r\n                 # apps\/gcc\/paraview\/3.14.1-ib modulefiles).\r\n\r\n# Ensure the paraview modulefile is loaded\r\n\r\nmpirun -n $NSLOTS pvbatch <em>scriptfile<\/em>\r\n                               #\r\n                               # where <em>scriptfile<\/em> is the file \r\n                               # containing your paraview script\r\n\r\n<\/pre>\n<p>Then submit the above jobscript using<\/p>\n<pre>\r\nqsub <em>jobscript<\/em>\r\n<\/pre>\n<p>where <em>jobscript<\/em> is the name of your file (e.g., <code>pvbatch.sh<\/code>)<\/p>\n<p>Please see <a href=\"http:\/\/www.paraview.org\/Wiki\/ParaView\/Users_Guide\/Batch_Processing\">Batch Processing<\/a> in the ParaView Users Guide for more information on using <code>pvbatch<\/code>.<\/p>\n<p><a name=\"hints\"><\/a><\/p>\n<h2>ParaView Hints<\/h2>\n<ul>\n<li>If using <code>pvserver<\/code> processes choose a sufficient number that you can load your dataset. Each <code>pvserver<\/code> will load at most 2GB worth of data (due to MPI restrictions).<\/li>\n<li>If using the movie maker, the AVI frame rate must be a power-of-2. 16 or 32 are reasonable values.<\/li>\n<li>Use the raycaster method when volume rendering for good results and performance.<\/li>\n<\/ul>\n<h3>Sample Data<\/h3>\n<p>Once the module is load you can see the ParaView sample data in the directory:<\/p>\n<pre class=\"in1\">\r\n$PARAVIEW_HOME\/ParaViewData-3.14.0\/Data\/\r\n<\/pre>\n<p>Note the version number of the data directory is different to the software version because the sample data does not get updated between point releases.<\/p>\n<h3>Troubleshooting<\/h3>\n<ul>\n<li>Linux desktop: if you connect to <code>pvserver<\/code> processes from a linux desktop and see nothing rendered in the GUI after loading data, applying filters etc then your local OpenGL library may not support the 32bit visual required by the GUI. This has been seen on linux desktops running Mesa 6.5.1. You&#8217;ll see a message from <code>paraview<\/code> similar to<\/li>\n<pre class=\"in1\">libGL warning: 3D driver claims to not support visual 0x5b<\/pre>\n<li>should download or compile a new <code>libGL.so<\/code> library (e.g., using <a href=\"http:\/\/www.mesa3d.org\">Mesa<\/a>) then set <code>LD_LIBRARY_PATH<\/code> to the directory where your <code>libGL.so<\/code> file is located. <code>paraview<\/code> will actually look for a file named <code>libGL.so.1<\/code> which is usually a symlink to <code>libGL.so<\/code>.<\/li>\n<\/ul>\n<h2>Further info<\/h2>\n<p>The ParaView GUI will not display online help. Instead please see the <a href=\"http:\/\/www.itk.org\/Wiki\/ParaView\/Users_Guide\/Table_Of_Contents\">ParaView Users Guide<\/a> and the <a href=\"http:\/\/paraview.org\/Wiki\/ParaView\">ParaView Wiki<\/a>.<\/p>\n<h2>Updates<\/h2>\n<ul>\n<li>26\/10\/12 Added instructions for connecting a local paraview client to the CSF over an SSH tunnel<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview ParaView is an open-source, multi-platform data analysis and visualization application. Versions 3.14.1 and 4.0.1 were compiled on the CSF using gcc (default version) and OpenMPI 1.6. The 3.14.1 installation includes ParaView development files and the Paraview GUI. Version 4.0.1 contains only the pvserver and pvbatch off-screen executables only. ParaView will not use any GPU hardware in the CSF. Instead all rendering is performed in software on the compute nodes. There are three ways to.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/paraview\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":31,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-343","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":20,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/343\/revisions"}],"predecessor-version":[{"id":3449,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/343\/revisions\/3449"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/media?parent=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}