IBM Books

Engineering and Scientific Subroutine Library for AIX Version 3 Release 3: Guide and Reference


|Chapter 5. Processing Your Program

| | | | | | | |

|This section describes the ESSL-specific changes you need to |make to your job procedures for compiling, linking, and running your |program.

|You can use any procedures you are currently using to compile, link, and |run your Fortran, C, and C++ programs, as long as you make the necessary |modifications required by ESSL.

|Notes:

  1. |The default search path for the ESSL libraries is: |/usr/lib. (Note that /lib is a |symbolic link to /usr/lib.)

    |If the libraries are installed somewhere else, add the path name of that |directory to the beginning of the LIBPATH environment variable, |being careful to keep /usr/lib in the path. The |correct LIBPATH setting is needed both for linking and executing |the program.

    |For example, if you installed the ESSL libraries in |/home/me/lib you would issue ksh |commands similar to the following in order to compile and link a |program:

    |    LIBPATH=/home/me/lib:/usr/lib
    |    export LIBPATH
    |    xlf -o myprog myprog.f -lessl

    |After setting the LIBPATH command, the |/home/me/lib directory is the directory that gets |searched first for the necessary libraries. This same search criterion |is used at both compile and link time and run time.

  2. |For the ESSL SMP Library, you can use the XL Fortran XLSMPOPTS or |OMP_NUM_THREADS environment variable to specify options which affect |SMP execution. For details, see the Fortran publications.

  3. |If you are accessing ESSL from a 64-bit-environment program, |you must add the -q64 compiler option.

  4. |ESSL supports the XL Fortran compile-time option |-qextname. For details, see the Fortran manuals.

  5. |In your job procedures, you must use only the allowable compilers and |libraries listed in Table 2 for AIX. |


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]