Paraview : Différence entre versions

De ClustersSophia
Aller à : navigation, rechercher
Ligne 1 : Ligne 1 :
<div class="alert">
 
This documentation describes the obsolete "legacy nef" configuration which will definitively stop on 17 april 2016 : please use the [[User_Guide_new_config| new nef configuration]]
 
</div>
 
  
 
{{entete}}
 
{{entete}}
Ligne 17 : Ligne 14 :
  
  
Paraview version ''3.14.1'' is installed on the cluster (compiled with openmpi-gcc) .
+
Paraview version ''5.0.1'' is installed on the cluster (compiled with openmpi-gcc) .
  
 
Documentation: see also [http://daac.hpc.mil/software/ParaView/ this site].
 
Documentation: see also [http://daac.hpc.mil/software/ParaView/ this site].
Ligne 36 : Ligne 33 :
  
  
On the nef cluster, paraview is installed in the /opt/paraview directory. binaries are available in <code>/opt/paraview/bin</code> The <code>paraview</code> binary let you start the application, in standard mode.
+
On the nef cluster, two versions of paraview are installed ; one compiled with opengl (can be used on gpu nodes or with remote display) , and one with mesa (for offline rendering).
 +
Both versions are available through a module (type <code>module avail</code> to see the current versions)
 +
 
  
 
The usual way to use paraview on nef is to start the client (paraview binary) on your workstation, start a paraview server (pvserver) on nef and then use the client to connect to the server.
 
The usual way to use paraview on nef is to start the client (paraview binary) on your workstation, start a paraview server (pvserver) on nef and then use the client to connect to the server.
Ligne 44 : Ligne 43 :
  
  
To start the Paraview server, you have to use a script like this (paraview.pbs):
+
To start the Paraview server, you have to use a script like this (paraview.sh):
 
  #!/bin/sh
 
  #!/bin/sh
cd $PBS_O_WORKDIR
 
 
  server=`hostname`
 
  server=`hostname`
 
  echo "The server is listening on host $server "
 
  echo "The server is listening on host $server "
  PVSERVER=/opt/paraview/bin/pvserver
+
  source /etc/profile.d/modules.sh
  export LD_LIBRARY_PATH=/opt/mesa/lib
+
  module load paraview/5.0.1-mesa
  /opt/openmpi-gcc/current/bin/mpirun $PVSERVER --use-offscreen-rendering
+
  module load mpi/openmpi-1.10.1-gcc
 +
mpirun --prefix $MPI_HOME $PARAVIEW_DIR/bin/pvserver --use-offscreen-rendering
  
Then, to start paraview server on 16 cores: <code>qsub -l nodes=2:ppn=8,walltime=2:00:00 paraview.pbs</code>
+
Then, to start paraview server on 4 nodes: <code>oarsub -l /nodes=4,walltime=2:0:0 ./paraview.sh</code>
  
The server will be started on 16 cores, but a single instance will listen to client connections. To know the name of the listening node, use qpeek [job id].
+
The server will be started on all the cores of the 4 nodes, but a single instance will listen to client connections. To know the name of the listening node, use oarpeek [job id].
nef:>qsub -l nodes=2:ppn=8,walltime=2:00:00 paraview.pbs
+
  nef:>oarpeek 407086
3130.nef.inria.fr
+
-- Info - Your job is in Running state ! --
  nef:>qpeek 3130.nef.inria.fr
+
  -- Info - Command is : cat /home/nniclaus/paraview/OAR.407086.stdout
  The server is listening on host nef002.inria.fr
+
  -- Info - Output is :  
Listen on port: 11111
+
  The server is listening on host nef066
 
  Waiting for client...
 
  Waiting for client...
 +
Connection URL: cs://nef066:11111
 +
Accepting connection(s): nef066:11111
 +
  
In this example, the listening node is '''nef002''', so on the paraview client , you have to connect to '''nef002.inria.fr''' using the connect button ( if this is the first time you use this server, you have to use ''Add server'', and put nef002 in Host and Name. Then use the '''Manual''' Startup type and save)
+
In this example, the listening node is '''nef066''', so on the paraview client , you have to connect to '''nef066.inria.fr''' using the connect button ( if this is the first time you use this server, you have to use ''Add server'', and put nef066 in Host and Name. Then use the '''Manual''' Startup type and save)

Version du 22 avril 2016 à 19:18



 Features

Paraview.png

Paraview is an open-source, multi-platform data analysis and visualization application. It is developped by Kitware. The version installed on the cluster is built with MPI support; therefore it can be started on several nodes of the cluster in parallel mode.

  Installation & documentation

Paraview version 5.0.1 is installed on the cluster (compiled with openmpi-gcc) .

Documentation: see also this site.


  Local Installation

For Fedora users, Paraview can be installed on their workstation. To do this, yum install paraview. If the version doesn't match with the version installed on nef, you can download a binary from the paraview website.


  Documentation

Documentation is available online.

  Usage

On the nef cluster, two versions of paraview are installed ; one compiled with opengl (can be used on gpu nodes or with remote display) , and one with mesa (for offline rendering). Both versions are available through a module (type module avail to see the current versions)


The usual way to use paraview on nef is to start the client (paraview binary) on your workstation, start a paraview server (pvserver) on nef and then use the client to connect to the server.


  Batch mode usage

To start the Paraview server, you have to use a script like this (paraview.sh):

#!/bin/sh
server=`hostname`
echo "The server is listening on host $server "
source /etc/profile.d/modules.sh
module load paraview/5.0.1-mesa
module load mpi/openmpi-1.10.1-gcc
mpirun --prefix $MPI_HOME $PARAVIEW_DIR/bin/pvserver --use-offscreen-rendering

Then, to start paraview server on 4 nodes: oarsub -l /nodes=4,walltime=2:0:0 ./paraview.sh

The server will be started on all the cores of the 4 nodes, but a single instance will listen to client connections. To know the name of the listening node, use oarpeek [job id].

 nef:>oarpeek 407086
-- Info - Your job is in Running state ! --
-- Info - Command is : cat /home/nniclaus/paraview/OAR.407086.stdout 
-- Info - Output is : 
The server is listening on host nef066 
Waiting for client...
Connection URL: cs://nef066:11111
Accepting connection(s): nef066:11111


In this example, the listening node is nef066, so on the paraview client , you have to connect to nef066.inria.fr using the connect button ( if this is the first time you use this server, you have to use Add server, and put nef066 in Host and Name. Then use the Manual Startup type and save)