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
Installation Path |
Description |
|---|---|
/usr/local/lib/kunpeng-hcom/libhcom.so |
Installation paths of SO files. |
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
- Obtain the SDK installation packages.
- openEuler 20.03 LTS SP1: https://mirrors.huaweicloud.com/kunpeng/archive/Kunpeng_SDK/HCOM/openEuler20.03SP1/
- openEuler 22.03 LTS SP1: https://mirrors.huaweicloud.com/kunpeng/archive/Kunpeng_SDK/HCOM/openEuler22.03SP1/
- CentOS 7.6: https://mirrors.huaweicloud.com/kunpeng/archive/Kunpeng_SDK/HCOM/CentOS7.6/
- Decompress the installation packages.
1 2
tar -zxvf kunpeng-hcom-xxx.aarch64.tar.gz tar -zxvf kunpeng-hcom-devel-xxx.aarch64.tar.gz
- Go to the decompressed directories and install the RPM packages.
kunpeng-hcom:
1rpm -ivh kunpeng-hcom-xxx.aarch64.rpm
kunpeng-hcom-devel:1rpm -ivh kunpeng-hcom-devel-xxx.aarch64.rpm
- (Optional) Uninstall the RPM packages.
kunpeng-hcom-devel:
1rpm -e kunpeng-hcom-devel
kunpeng-hcom:1rpm -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.