Ctypes and SIMD Collaboration: A Breakthrough Path for High-Performance Computing in Python

Ctypes and SIMD Collaboration: A Breakthrough Path for High-Performance Computing in Python

In the field of high-performance computing, Python often faces performance bottlenecks due to its interpreted nature. However, the collaborative application of ctypes and SIMD instruction sets provides an effective path to overcome these limitations. 1. Basics of Performance Engineering with ctypes 1.1 Core Value of ctypes As part of the Python standard library, ctypes enables … Read more

Comparing SIMD and Vector Computing: A Historical Perspective

Comparing SIMD and Vector Computing: A Historical Perspective

This document compares SIMD (Single Instruction, Multiple Data) and vector computing from the perspective of instruction set architecture (ISA) within the historical context of computer architecture. Historical Context: From Supercomputers to Desktop Computers The Era of Vector Computing (1970s-1980s) The story of large-scale parallel processing began with supercomputers like Cray-1 (1976). At that time, scientists … Read more

Breaking Performance Limits: Accelerating Binary Search Algorithms with SIMD Instruction Sets

Breaking Performance Limits: Accelerating Binary Search Algorithms with SIMD Instruction Sets

In the programming world, the binary search algorithm has always been one of the most classic and efficient search algorithms. It can find the target element in O(log n) time complexity, making it the preferred solution for handling ordered data. However, in today’s era of big data, even O(log n) time complexity can become a … Read more

DSP Video Tutorial Episode 11: DSP Interpolation Algorithms and Curve Fitting

DSP Video Tutorial Episode 11: DSP Interpolation Algorithms and Curve Fitting

The DSP video tutorial hasn’t been updated for a while. Currently, the DSP library has been separated from the CMSIS software package and is being updated very frequently. Therefore, this episode of the video tutorial will first give a brief introduction to the new DSP version, and then provide a detailed introduction to the basic … Read more

Can Micro AI Applications Work Without NPU?

Can Micro AI Applications Work Without NPU?

When it comes to AI, most people probably first think of large language models (LLM) and generative AI (genAI, AIGC) applications, which can chat, query data, and generate articles, images, and music, and most of these applications require massive cloud computing power to complete. For micro AI applications, such as voice wake-up (voice commands), anomaly … Read more

Genius Behind Renesas RX Series High-Performance 32-bit CISC Microcontroller

Genius Behind Renesas RX Series High-Performance 32-bit CISC Microcontroller

The Genius Behind Renesas RX Series: Designing High-Performance 32-bit CISC Microcontrollers Frog: Sister Liu, I went for an interview today and was asked about the Renesas RX series microcontrollers, but I couldn’t answer. Can you tell me about the characteristics and advantages of this series? Sister Liu: Of course, Frog. The Renesas RX series is … Read more

Essence of DSP Operation Acceleration: SIMD Instructions and MAC Operations

Essence of DSP Operation Acceleration: SIMD Instructions and MAC Operations

The acceleration of DSP in Cortex-M core microcontrollers is entirely achieved through these instructions, and I will introduce how the DSP source code implements this acceleration. Tencent Video: Bilibili Video: Instruction Set: References:1. DSP Tutorial https://www.armbbs.cn/forum.php?mod=viewthread&tid=94547 2. Authoritative Guide https://www.armbbs.cn/forum.php?mod=viewthread&tid=96973

Pillow – SIMD: Accelerate Image Processing with Python

Pillow - SIMD: Accelerate Image Processing with Python

Hey, Python developers! Imagine you’re running a super popular cherry e-commerce store, and every day you have to process a large number of cherry images. You need to resize these images, add watermarks, and optimize colors to ensure they display perfectly on your website and attract customers to make a purchase. But traditional image processing … Read more

Innovative Technologies in CPUs: Pipelining, Superscalar, and SIMD

Innovative Technologies in CPUs: Pipelining, Superscalar, and SIMD

Pipelining Technology We can think of pipelining technology as a fast food restaurant. Making a fast food meal requires several steps, such as chopping vegetables, frying, and plating. If one person makes one meal at a time, the efficiency will be very low. However, if we break this process down and let A chop vegetables, … Read more

Pillow – SIMD: Accelerating Image Processing in Python

Pillow - SIMD: Accelerating Image Processing in Python

Hello, Python developers! Today, we are going to talk about an amazing image processing tool — Pillow – SIMD. In this image-saturated era, whether at work or in life, we often deal with images. For example, in the real estate industry, agents need to process a large number of property photos, performing cropping, adjusting brightness … Read more