Huawei HMS Core computing acceleration service makes Internet surfing more enjoyable

With the advent of the 5G era, smart devices have been involved in many aspects of people’s lives and work. Correspondingly, users have higher and higher requirements for the network. The instability of mobile networks often brings inconvenience and poor network experience to users. , This is also one of the difficulties that many developers overcome in the development process.

The Huawei HMS Core computing acceleration service (Accelerate Kit) provides application developers with a simpler and easier-to-use multi-threaded programming interface, the same thread scheduling management, fully utilizes multi-core capabilities, and improves program performance, thereby bringing users a smooth network experience .

Numerous services and capabilities help developers deeply participate in system scheduling

To solve program performance problems, Huawei Computing Acceleration Service provides developers with a multi-threaded acceleration library. It will also provide developers with multi-threaded acceleration and computing acceleration solutions to help developers easily solve thread overloading and application performance problems. Huawei Computing Acceleration Service prioritizes the introduction of a multi-threaded library, which provides an interface for distributing tasks to the management queue, and scheduling management queue tasks to be executed on multi-core hardware to make rational use of system resources.

In addition, the system performance acceleration library (PerfGenius) is a performance acceleration module in Huawei's computing acceleration service, allowing developers to deeply participate in the performance scheduling of Huawei hardware platforms, providing interfaces for displaying frame rate settings, key thread settings, and performance and energy efficiency status reporting. It opens up a direct communication channel with the hardware, allowing developers to make deep use of the performance tuning of the hardware platform and efficiently use the platform's hardware capabilities.

Insert picture description here

For example, under normal circumstances, equipment manufacturers schedule corresponding resources by predicting the load of the application, and there will be a certain prediction delay and error in the load sudden change scenario. Independent control of performance parameters through the system performance acceleration library can make the hardware response more timely and accurate, effectively helping to solve performance problems such as application freezes, game frame dropping, and at the same time avoiding the problem of excessive performance in low-load scenarios and maximizing improvement Energy efficiency ratio of the whole machine.

Insert picture description here

The service is simple and easy to use, helping developers to develop high-energy and efficient applications

Huawei Computing Acceleration Service provides a simple and rich multi-threaded programming interface, which has higher ease of use and practicality, which can improve programming efficiency and reduce development difficulty. Developers do not need to pay attention to thread management (thread creation, destruction, synchronization), nor do they need to understand the multi-core hardware architecture. They only need to focus on the realization of tasks and improve development efficiency.

The other is high performance and high efficiency. Developers can make rational use of system resources, maximize reuse of cache, and give full play to multi-core performance. The original developer's single-threaded tasks can be easily transformed into multi-threaded tasks through this interface. The multi-threaded library is uniformly scheduled to different cores, thereby maximizing heterogeneous multi-core capabilities and helping developers to easily solve thread overloading and application performance. problem. By balancing and scheduling system resources, system power consumption is also reduced.

Insert picture description here

Diverse application scenarios allow users to enjoy high-quality online life

At present, Huawei's computing acceleration service can access multiple applications such as game apps, camera apps, and navigation apps. In the game field, Huawei's computing acceleration service can help developers simplify the multi-threaded programming model in large-scale games and complex camera scenarios, and make full use of multi-core and multi-thread capabilities to improve program performance. For example, NetEase Games optimized the underlying library function call overhead and task scheduling algorithm by accessing the Huawei Computing Acceleration Service multithreaded framework library, reducing invalid task waiting. Compared with the basic version of the framework call, the framework overhead was optimized by 10%- 15%. (Data comes from developer feedback)

The system performance acceleration library in Huawei's computing acceleration service has played a great role in various application scenarios: such as game rendering, by setting key threads to ensure the resource scheduling priority of user threads. In the face of sudden load changes, it is easier for developers to predict load changes and notify the hardware to increase the frequency or increase the refresh rate in time; make the application start faster and the game run smoother; for scenarios with low refresh rates such as navigation, the system performance acceleration library can Notify the hardware to reduce the refresh rate, and when switching to the animation in the navigation, it can increase the refresh rate in time, and maintain low power consumption without affecting the user experience.

In the future, Huawei’s HMS Core computing acceleration service will also launch a computing acceleration library that provides linear algebra operations such as matrix, vector, and scalar operations, as well as CV and image processing computing acceleration capabilities, to further improve the development efficiency of developers and bring more exciting to users smart life.

For more information, please refer to the official website of Huawei Developer Alliance . You can also send an email to [email protected] to quickly find our professional and technical personnel for development consultation. We look forward to your joining!


Original link:https://developer.huawei.com/consumer/cn/forum/topic/0202443615221050508?fid=18

Original author: This whom nothing

Guess you like

Origin blog.51cto.com/14772288/2589304