This directory contains versions of the LINPACK100 linear algebra
benchmark which can be run in parallel using the PGF77 or PGF90
compilers and the -Mconcur auto-parallelization option.  

Running on Linux or Solaris86
-----------------------------
To build and run this benchmark on Linux or Solaris86, your environment
must be properly initialized to use the PGI compilers.  If your environment
is not yet initialized, and assuming the PGI compilers are installed in
the directory /usr/local/pgi, issue the following commands:

	% setenv PGI /usr/local/pgi
	% set path=($PGI/<OS>/bin $path)
	% setenv MANPATH "$MANPATH":$PGI/man

where <OS> is replaced by either "linux86" or "Solaris86" (without the
quotation marks).  Then change directories to the "UNIX" sub-directory and 
issue the following commands:

	% make

	< lots of output to your screen >

	% linpkrd

	< benchmark runs and produces output >

By default, the "linpkrd" executable will use only one processor. 
You can run on 2 or more processors by setting the NCPUS environment 
variable.  If you're using csh, set NCPUS as follows:

	% setenv NCPUS 2

If using bash, sh, or ksh, set NCPUS as follows:

	% NCPUS=2 ; export NCPUS

and then execute "linpkrd" again to see what kind of speedups you get.
Speedups will vary depending on the type of system you're using, but
should be anywhere from 25% to 70% when running on 2 processors over 1.

Running on Windows NT
---------------------
To build and run this benchmark on Windows NT, you need to be
working within a PGI Workstation BASH command window (that's the 
window that comes up when you double-click the PGI icon on your
Windows NT desktop).  Change directories to the "NT" sub-directory.
Edit the second.c file and put the appropriate constant in line
6 corresponding to the clock rate of your system.  If unmodified,
the line looks as follows:

    __rouget_rate = 1.0 / 200e6;	/* assume 200 mhz */

and assumes a clock rate of 200MHz.  Then issue the following commands:

	% make

	< lots of output to your screen >

	% linpkrd

	< benchmark runs and produces output >

By default, the "linpkrd.exe" executable will use only one processor. 
You can run on 2 or more processors by setting the NCPUS environment 
variable:

	% NCPUS=2 ; export NCPUS

and then execute "linpkrd.exe" again to see what kind of speedups you get.
Speedups will vary depending on the type of system you're using, but
should be anywhere from 25% to 70% when running on 2 processors over 1.
