Rate This Document
Findability
Accuracy
Completeness
Readability

Migration Procedure

  1. Install KAIL based on "Installing KAIL" in the Kunpeng AI Library Developer Guide.
  2. Obtain the adaptation code of KAIL_DNN v2.0.0.
    git clone -b v2.0.0 https://gitee.com/openeuler/kail_dnn_adapter
  3. Access kail_dnn_adapter and compile oneDNN.
    • Kunpeng 920 7285Z
      cd kail_dnn_adapter
      sh build.sh --kml_dir=/path/to/HPCKit/latest/kml/gcc

      Path to libdnnl.so: out/oneDNN-3.4/build/src/

      Paths to the dependency libraries:
      • Path to .so files related to ACL: out/ComputeLibrary-23.11/build/
      • Path to .so files related to KAIL: /usr/local/kail/lib/libkdnn.so
      • Paths to .so files related to KML:
        • /path/to/HPCKit/latest/gcc/kml/lib/sve/kblas/multi/libkblas_armv9p_v25.0.0.so
        • /path/to/HPCKit/latest/gcc/kml/lib/noarch/kvml/multi/libkvml.so.25.0.0
        • /path/to/HPCKit/latest/gcc/kml/lib/noarch/libkm.so.25.0.0
      You can use all interfaces of oneDNN v3.4.0 by linking libdnnl.so.

      The --kml_dir option in the compilation command specifies the installation path of KML.

      In the .so paths related to KML, /path/to/ indicates the HPCKit installation path.

    • Kunpeng 920 72F8 (using BiSheng Compiler as an example)
      cd kail_dnn_adapter
      sh build.sh --enable_hbm=on --compiler=clang --kml_dir=/path/to/HPCKit/latest/kml/bisheng/

      Path to libdnnl.so: out/oneDNN-3.4/build/src/

      Paths to the dependency libraries:
      • Path to .so files related to ACL: out/ComputeLibrary-23.11/build/
      • Path to .so files related to KAIL: /usr/local/kail/lib/libkdnn.so
      • Paths to .so files related to KML:
        • /path/to/HPCKit/latest/bisheng/kml/lib/sme/kblas/multi/libkblas_armv9p_v25.0.0.so
        • /path/to/HPCKit/latest/bisheng/kml/lib/noarch/kvml/multi/libkvml.so.25.0.0
        • /path/to/HPCKit/latest/bisheng/kml/lib/noarch/libkm.so.25.0.0
      You can use all interfaces of oneDNN v3.4.0 by linking libdnnl.so.

      In the compilation command, --enable_hbm=on enables HBM (disabled by default), --compiler=clang specifies BiSheng Compiler (GCC by default), and --kml_dir specifies the installation path of KML.

      In the .so paths related to KML, /path/to/ indicates the HPCKit installation path.