Instructions
This chapter describes the dynamic libraries to be linked for using each math library.
Add the paths of the dynamic libraries to the compilation options to link the required dynamic library files. Then run the ldd command to check that the dependency libraries are correctly linked.
- To use KML_BLAS, add -lkblas.
- To use KML_VML, add -lkvml -lkm -lm.
- To use KML_SPBLAS, add -lkspblas.
- To use KML_FFT, add the following information:
- Single-precision version: -lkfftf
- Double-precision version: -lkfft
- Half-precision version: -lkffth
- To use KML_MATH, add the following information:
- High-performance version: -lkm -lm
- High-precision version: -lkm_l9 -lm
- To use KML_SVML, add -lksvml -lm.
- To use KML_VSL, add -lkvsl.
- To use KML_LAPACK, add -lklapack -lkblas -lkservice.
- To use KML_SOLVER, add the following information:
- Standalone version: -lksolver -lklapack -lkservice -lkblas
- Cluster version: -lkscasolver -lklapack -lkservice -lkblas
- To use KML_IPL, add -lkipl -lklapack -lkblas -lm.
- To use KML_ScaLAPACK, add -lkscalapack -lklapack -lkservice -lkblas.
- To use KML_EIGENSOLVER, add -lkes -lklapack -lkscalapack -lkservice -lkblas.
Parent topic: Kunpeng Math Library Developer Guide