Collecting Data for the omptest Example

In this example you generate two experiments: one that is run with 4 CPUs and one that is run with 2 CPUs.

To collect data for omptest, type the following commands in a terminal window if you are using the C shell.

% cd ~/work-directory/omptest
% setenv PARALLEL 4
% collect -o omptest.1.er omptest
% setenv PARALLEL 2
% collect -o omptest.2.er omptest
% unsetenv PARALLEL

If you are using the Bourne shell or the Korn shell, type the following commands in a terminal window.

$ cd /work-directory/omptest
$ PARALLEL=4; export PARALLEL
$ collect -o omptest.1.er omptest
$ PARALLEL=2; export PARALLEL
$ collect -o omptest.2.er omptest
$ unset PARALLEL

Here, work-directory is the full path to the directory that you created for the examples. The collect commands create two experiments in the omptest subdirectory, named omptest.1.er and omptest.2.er. If you make a mistake in recording the experiments and already have experiments with these names, you can remove them using the er_rm command.

When you have finished collecting data, open the first experiment, omptest.1.er, in the Performance Analyzer.

For information on the collect command, see the collect(1) man page. If you are already familiar with the collect command, you can type make collect instead of the commands given above.


Can't find what you are looking for? Submit your comments at http://www.sun.com/hwdocs/feedback.
Legal Notices