Rate This Document
Findability
Accuracy
Completeness
Readability

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 environment variables. /PATH_TO_KM indicates the installation path.
    export LD_LIBRARY_PATH=/PATH_TO_KM:$LD_LIBRARY_PATH