Rate This Document
Findability
Accuracy
Completeness
Readability

Migration Procedure

Migrating the Library That Uses High-Performance Function Interfaces and C Language

  1. Check whether the source code contains the header file <mathimf.h>/<math.h> /<mathlib.h> of the open source basic math library.
  2. Replace the open source header file with <km.h>.
  3. In the compilation options, replace -lm/-lmathlib with -lkm -lm.
  4. Add an environment variable. /PATH_TO_KM indicates the installation path.
    export LD_LIBRARY_PATH=/PATH_TO_KM:$LD_LIBRARY_PATH

Migrating the Library That Uses High-Precision Function Interfaces and C Language

  1. Check whether the source code contains the header file <mathimf.h>/<math.h> of the open source basic math library.
  2. Replace the open source header file with <km.h>.
  3. In the compilation options, replace -lm -fp-model=precise with -lkm_l9 -lm.
  4. Add an environment variable. /PATH_TO_KM indicates the installation path.
    export LD_LIBRARY_PATH=/PATH_TO_KM:$LD_LIBRARY_PATH

Migrating the Library That Uses the Fortran Interface

The procedure of migrating the library that uses the Fortran interface is the same as that in Migrating the Library That Uses High-Performance Function Interfaces and C Language.