2 running an application using scripts, 1 selecting a template or script – HP Scalable Visualization Array Software User Manual
Page 38
5.2 Running an Application Using Scripts
Typically, you encapsulate the various commands needed to run applications using a script file.
This speeds the process of running the application, given the likelihood that this is a task you
repeat.
The installation of the SVA Software Kit provides several general purpose script templates. These
templates are the starting points for creating scripts to launch your own application. They carry
out the tasks of allocating cluster resources, launching necessary ancillary applications (for
example, X servers and DMX), running the application on the right nodes, and terminating the
application at the end of the session. Script templates typically need site-specific editing.
The kit installation also provides fully functional job launch scripts that you can use as is or
customize for your own site. These are typically located in the /opt/sva/bin directory and
are configured to be on your PATH.
Follow these steps to use a script template:
1.
Select a template.
2.
Modify a copy of the script template to suit the specific needs of the visualization application.
3.
Execute the modified script from any cluster node, for example, the head or a login node,
to launch your application as part of a visualization session.
Manpages for each template and script are installed on all SVA nodes. This information is also
available in the SVA Visualization System Software Reference Guide.
5.2.1 Selecting a Template or Script
Select one of the available templates or fully functional scripts that most closely suits the needs
of your application and environment. The following templates and scripts are available:
•
sva_job_template.sh
A generic template you can use as the basis for scripts to launch visualization applications.
The sva_job_template.sh template is located in the /opt/sva/samples directory.
•
sva_paraview.sh
This script template is specifically optimized to launch the ParaView application
2
. It can
serve as a template for your use of ParaView. However, it needs site-specific editing before
use. The sva_paraview.sh template is located in the /opt/sva/bin directory.
•
sva_chromium_dmx.sh
This script assumes that your application works on a single workstation. The script automates
getting the application to run on the SVA using a multi-tile display. It also uses DMX to
distribute an image across multiple nodes. It uses Chromium in the case of standard OpenGL
applications. This is a fully functional script on your PATH. The sva_chromium_dmx.sh
script is located in the /opt/sva/bin directory.
2. The ParaView application is not shipped as part of the SVA Kit.
38
Setting Up and Running a Visualization Session