beautypg.com

2 running an application using scripts, 1 selecting a template or script – HP Scalable Visualization Array Software User Manual

Page 40

background image

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_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.

Tip:

A useful feature of the sva_chromium_dmx.sh script is its interactive mode for running
all sorts of applications, including regular X Server applications. For example, you can
display high resolution images with a variety of applications, or you can run standard
OpenGL applications with Chromium. The script provides an easy way to take advantage
of a multi-tile display. See

Section 5.3

for more information on running an interactive session.

sva_remote.sh

This script sets up the SVA to let you access a visualization node in the cluster from a remote
desktop using HP RGS. This is a fully functional script on your PATH. The sva_remote.sh
script is located in the /opt/sva/bin directory.

sva_vgltvnc.sh

This script sets up the SVA to let you access a visualization node in the cluster from a remote
desktop using VirtualGL. This is a fully functional script on your PATH. The
sva_vgltvnc.sh

script is located in the /opt/sva/bin directory.

40

Setting Up and Running a Visualization Session