| Visualization Tool (VT) Exercise |
Recommendations Concerning This Exercise
Open a new window on your workstation and enter the command "xhost +" to permit the SP machine to send X displays to your local workstation.
Make sure that you are logged into your assigned SP node with your assigned userid for this exercise. Ask the instructor if you have any questions.
After logging into the SP, specify that X clients should be displayed on your workstation by using one of the commands below. Note that you should substitute the real IP address or machine name of your workstation for "machine.address". Ask your instructor if you have any questions.
| csh/tcsh | setenv DISPLAY machine.address:0 |
|---|---|
| bsh/ksh | export DISPLAY=machine.address:0 |
The $WORKSHOP variable defines the root location for the workshop files, and may vary from workshop to workshop. Find out if this has already been setup for your workshop:
echo $WORKSHOP
If this environment variable is not set, check with the instructor for the correct location. Then, depending upon your shell, set $WORKSHOP:
| csh/tcsh | setenv WORKSHOP instructor/specified/path |
|---|---|
| bsh/ksh | export WORKSHOP=instructor/specified/path |
In your SP home directory, create a subdirectory for the VT exercise code, cd to it, and then copy the VT exercise file there.
mkdir vt
cd vt
cp $WORKSHOP/vt/samples/* .
The trace file being used was created from the 2D-FFT MPI lab exercise. Start VT using this trace file with the following command:
vt -cmap -tracefile mpi_2dfft.trc &
After a few moments, the two initial VT windows will appear. Notice that a trace file will automatically be loaded by VT. Note: the -cmap argument allows VT to start with its own colormap, thus avoiding problems with other X Windows applications (such as a web browser) which are using colors needed by VT.
If time permits and you are interested, try creating your own trace file from one of the MPI example codes and then viewing it. The instructions, How to Generate Trace Files in the VT tutorial describe how to do this.
When you are finished, close all VT windows and logout of the SP machine.
This concludes the VT exercise.