slinpack example program: Description: The slinpack program is intended as an example program for users of the Performance WorkShop. It performs Gaussian elimination, dot products, etc. Usage: slinpack Note: The project file provided builds an f77 executable (slinpack). But, for further illustration, a makefile has been provided, which has two different build targets: an f77 executable (slinpack) and an f90 executable (slinpackf90). You may use whichever suits your needs. Example Scenario: Step 1: Make a copy of the programs Copy the contents of the slinpack directory to your own private working area with the following command: cp -r /opt/SUNWspro/examples/WorkShop/slinpack ~/slinpack NOTE: /opt/SUNWspro is the base directory where the product is installed. This directory may be different in your environment. For fun, you could also use TeamWare to create your own workspace of this program. For more information on how to do that, refer to the manuals. Step 2: Open Project File for the slinpack Program Start WorkShop with the the "workshop" command. From WorkShop main window, select "Open Project..." from the "Project" menu and open the Project file, "~/slinpack/slinpack.prd". This Project file provides some pre-set file, compiler, debugger, and build-related settings for you. Step 3: Build the executable From the WorkShop main window, go to the Build menu and select the "slinpack in ..." target in the lower part of the menu. This launches a build of the program, bringing up the build-output window. The program should build successfully. Close the Build Output window when done. (or) Point WorkShop's Build window to the memerror directory by selecting 'Build->New Target ...' from either the main window, or from the Build window if it's already open. A dialog pops-up. Change the value of 'Directory' to the location of slinpack and select 'slinpack' as the new 'Target'. Click the 'Build' button on the dialog. Step 4: Run the program under the debugger. From the WorkShop main window, select Debug->New Program... and fill out the resulting dialog box to tell the debugger that you want to debug either the slinpack executable. The debug window along with your editor of choice should come up. Copyright 2000 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303, U.S.A. All rights reserved.