Analyzing Program Performance With Sun WorkShop

Setting Up Your Environment

Before running an executable compiled with -Zlp, set the environment variable PARALLEL to the number of processors on your machine.

The following command makes use of psrinfo, a system utility. Note the backquotes:


% setenv PARALLEL `/usr/sbin/psrinfo | wc -l`

You may want to put this command in a shell startup file (such as .cshrc or .profile).