Accessing VECLIB
variable to specify a library path, you cannot override that specification with a
5.Use the following commands to link your programs for use with the VECLIB8 library on a Red Hat Linux system.
ifort −i8 [options] file ...
icc [options] file ... −L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[3264]/lveclib8 −openmp
When you use the C compiler for linking, you may require one or more of
For XC6000 Systems with the Intel V8.0 Compiler
1.Use one of the following compile line commands to link VECLIB:
ifort [options] file ...
2.Specify the entire path of the library file on the compiler command line that links your program. For example, to link your program with VECLIB for use with
ifort [options] file ... /opt/mlib/lib/intel_8.0/hpmpi_2.1/lib/64/libveclib.a −openmp
icc [options] file ... /opt/mlib/lib/intel_8.0/hpmpi_2.1/lib/64/libveclib.a −openmp
Replace libveclib.a with libveclib.so on your compiler command line if you want to link the shared library on an XC6000 system.
3.Use the −lveclib option on the compiler command line that links your program, preceded by:
For example, the command lines in Method 2 for XC6000 could be written:
ifort [options]
icc [options] file ...
4.Set the LDOPTS environment variable to include:
Chapter 1 Introduction to VECLIB 11