Introduction
The Kunpeng System Library (KSL) is a high-performance library provided by Huawei based on the Kunpeng platform. This document provides the installation guide, interface definitions, and sample code of KSL to help you quickly get started with this library.
All KSL interfaces are implemented in C, C++, and assembly languages. Table 1 shows the composition of KSL.
No. |
Library |
Description |
Application Scenario |
|---|---|---|---|
1 |
AVX2KI |
Arm implementation of Intel intrinsics. AVX To Kunpeng Intrinsic (AVX2KI) is an interface collection library that re-implements the intrinsic interface collection on a conventional platform using Kunpeng instructions and encapsulates the intrinsic interface collection as an independent interface module (in C language header file mode) to reduce the workload of repeated development of porting projects. Users can continue to use the intrinsic functions of a conventional platform by importing the header file into the application. |
Adaptation and migration of Intel intrinsics to Kunpeng processors |
2 |
KQMalloc |
Kunpeng Quick Malloc (KQMalloc) is a high-performance memory library designed for single-threaded applications. This allocator can only improve performance of single-threaded applications. |
Memory application and releasing |
3 |
HTL |
The Hyper Thread Library (HTL) is a user-level thread library built on kernel-mode threads. It is used to solve the problem that application performance deteriorates and the system resources are insufficient when a large number of kernel-mode threads are used, especially when the performance is extremely low in nested parallel scenarios. This library improves concurrency and performance while reducing resource usage. |
Multi-thread parallel application |
KSL is available only for Kunpeng processors. To achieve the optimal performance, KSL interfaces do not verify all input parameters. The validity of input parameters is ensured by the service that calls the interfaces.