Rate This Document
Findability
Accuracy
Completeness
Readability

Installing and Uninstalling the HCOM SDK

The HCOM SDK provides a set of high-level APIs that support various protocols, masks the complexity and differences of low-level APIs such as RDMA, TCP, UDS, and SHM, and maximizes hardware capabilities to deliver high performance.

Prerequisites

CPU: Kunpeng 920

Server: Kunpeng server

OS: openEuler 20.03 LTS SP1, openEuler 22.03 LTS SP1, or CentOS 7.6

CMake: 2.18.2 or later

Installation Directory Structure

Table 1 Structure of the kunpeng-hcom installation directory

Installation Path

Description

/usr/local/lib/kunpeng-hcom/libhcom.so

Installation paths of SO files.

Table 2 Structure of the kunpeng-hcom-devel installation directory

Installation Path

Description

/usr/include/kunpeng-hcom-devel/hcom_service_def.h

/usr/include/kunpeng-hcom-devel/hcom_def.h

/usr/include/kunpeng-hcom-devel/hcom_ref.h

/usr/include/kunpeng-hcom-devel/hcom_utils.h

/usr/include/kunpeng-hcom-devel/hcom_obj_statistics.h

/usr/include/kunpeng-hcom-devel/capi/hcom_c.h

/usr/include/kunpeng-hcom-devel/capi/hcom_service_c.h

/usr/include/kunpeng-hcom-devel/capi/hcom_cgo_c.h

/usr/include/kunpeng-hcom-devel/hcom_num_def.h

/usr/include/kunpeng-hcom-devel/hcom_err.h

/usr/include/kunpeng-hcom-devel/hcom_service.h

/usr/include/kunpeng-hcom-devel/hcom.h

Installation path of the header file.

Installation and Uninstallation

  1. Obtain the SDK installation packages.
  2. Decompress the installation packages.
    1
    2
    tar -zxvf kunpeng-hcom-xxx.aarch64.tar.gz
    tar -zxvf kunpeng-hcom-devel-xxx.aarch64.tar.gz
    
  3. Go to the decompressed directories and install the RPM packages.

    kunpeng-hcom:

    1
    rpm -ivh kunpeng-hcom-xxx.aarch64.rpm
    
    kunpeng-hcom-devel:
    1
    rpm -ivh kunpeng-hcom-devel-xxx.aarch64.rpm
    
  4. (Optional) Uninstall the RPM packages.

    kunpeng-hcom-devel:

    1
    rpm -e kunpeng-hcom-devel
    
    kunpeng-hcom:
    1
    rpm -e kunpeng-hcom
    
  • xxx indicates the version.
  • Obtain the latest TAR.GZ installation packages from the URLs given above, decompress the packages, and install the software.
  • The kunpeng-hcom-devel and kunpeng-hcom software packages are dependent on each other. You must install the kunpeng-hcom software package before installing the kunpeng-hcom-devel software package. Before uninstalling the kunpeng-hcom software package, ensure that the kunpeng-hcom-devel software package has been uninstalled.
  • Ensure that kunpeng-hcom and kunpeng-hcom-devel software packages are of the same version.