Accessing VECLIB

 

 

 

 

 

 

Processor

OS

Address

Installation Directory

Libraries

 

Type

Version

Width

 

 

 

 

 

 

 

 

 

 

 

HP XC6000

 

 

libveclib.a

 

Itanium 2

Intel V7.1

64-bit

/opt/mlib/intel_7.1/hpmpi_2.1/lib/64

libveclib.so

 

 

Compiler

 

 

libveclib8.a

 

 

 

 

 

libveclib8.so

 

 

 

 

 

 

 

 

HP XC4000

 

 

libveclib.a

 

 

 

 

libveclib.so

 

Itanium 2

PGI V5.1

64-bit

/opt/mlib/intel_5.1/hpmpi_2.1/lib/64

 

 

Compiler

 

 

libveclib8.a

 

 

 

 

libveclib8.so

 

 

 

 

 

 

 

 

 

 

 

 

 

Opteron

 

 

libveclib.a

 

 

 

 

libveclib.so

 

Itanium 2

PGI V5.1

64-bit

/opt/mlib/intel_5.1/hpmpi_2.1/lib/64

 

libveclib8.a

 

 

Compiler

 

 

libveclib8.so

 

 

 

 

 

 

 

 

 

 

 

 

Only 64-bit addressing is supported in the VECLIB8 library.

The file name of the archive VECLIB and VECLIB8 libraries are libveclib.a and libveclib8.a respectively. The VECLIB shared library for PA is libveclib.sl and is libveclib.so for all other operating systems.

Performance of your applications is better when you use archive libraries. However, if you need to keep executable files to a minimum size, you can use shared libraries. See “Linking with libisamstub.a” on page 8 if your application calls Fortran77 routines from C language code, and you are linking with the VECLIB archive library.

The HP VECLIB library contains parallelized subprograms. Refer to Appendix C, “Parallelized Subprograms,” for details. If your program is run on an HP-UX system with multiple processors, see “Parallel processing” on page 17 for additional information about linking your program.

Compiling and linking (VECLIB)

There are several ways to link your program with the version of VECLIB tuned for the machine on which the program runs. By default, the −lveclib option on the f90, cc, or c89 command line that links your program selects the library that corresponds to 32-bit addressing on the machine on which you link.

ccis the HP C compiler and c89 is the HP POSIX-conforming C compiler. The remainder of this book refers to the cc and f90 compilers. cc and f90 examples also apply to c89.

Chapter 1 Introduction to VECLIB 5