MATLAB Vectorization: Faster Loop Alternatives

In MATLAB programming, the process of replacing loops with vectorized statements is called vectorization.Example: Calculating the square, square root, and cube root of all integers from 1 to 100.1. Using a for loop % Calculate the square, square root, and cube root of each integer from 1 to 100 square = zeros(1, 100); % Preallocate … Read more

Complete Guide to Rust SIMD Programming: From Beginner to Expert

Introduction In the pursuit of ultimate performance, SIMD (Single Instruction, Multiple Data) is an unavoidable topic. As of 2025, the SIMD ecosystem in Rust has matured significantly, but with so many solutions available, do you feel confused? This article will provide a comprehensive overview of the current state of SIMD in Rust, helping you choose … Read more

NPUEval: Evaluating AMD Hardware LLM Vectorization NPU Kernel

NPUEval: Evaluating AMD Hardware LLM Vectorization NPU Kernel

Keywords: NPUEval, NPU Kernels, LLMs, Vectorization, Open Source Compilers, Performance Evaluation [NeuralTalk Brief Review]The AMD NPU’s AIE tile relies on VPU (Vector Processing Unit), and vectorizing code is key to unleashing its computing power while reducing latency and power consumption. However, the NPU programming ecosystem is immature and fragmented, leading to LLM-generated code that is … Read more

I. Strengthening Fundamentals and Establishing ‘MATLAB Thinking’

I. Strengthening Fundamentals and Establishing 'MATLAB Thinking'

Objective:Break free from habits formed in other languages (especially Python) and master the most core and efficient vectorized programming concepts in MATLAB. (1)Familiarize Yourself with an Efficient Interactive Environment 1.Command Window: Quickly test code snippets and view variables. 2.Editor: Write and debug complete scripts (.m files) and functions. 3.Workspace: View the names, dimensions, and values … Read more

Patent Review – SIMD Series – Vectorization Engine

Patent Review - SIMD Series - Vectorization Engine

Patent Review-SIMD Series–Vectorization Engine 1. Patent Content Alibaba‘s patent:Method and Device for Vectorized Data Processing, the main idea is: for query scenarios involving row-oriented tables or a mix of row and column storage, it is necessary to manually convert row-oriented tables into column-oriented tables before performing vectorized processing, which is costly. Alibaba provides a method … Read more

High-Performance SIMD in C++

High-Performance SIMD in C++

High-Performance SIMD in C++ Recently, I have been looking at related content on vectorization, and it seems a bit overwhelming. Taking this opportunity to learn about high-performance SIMD programming. SIMD stands for Single Instruction, Multiple Data. In traditional computer architecture, the CPU can only process one data element at a time. However, many tasks involve … Read more

Exploring SIMDJSON: 2.5x Performance Boost Over Fastjson2

Exploring SIMDJSON: 2.5x Performance Boost Over Fastjson2

Hello everyone, I’m Tim. We all know that due to various issues with the Java language, vectorization has always been synonymous with C++ or Rust. Recently, an open-source JSON parsing library called simdjson-java, which uses Java’s vectorization API, has emerged, offering a performance that is 2.5 times faster than the Fastjson2 parsing library! This means … Read more

Analyzing SIMD Instructions in ClickHouse

Analyzing SIMD Instructions in ClickHouse

ClickHouse has done very detailed work at the computing layer, maximizing hardware capabilities to enhance query speed. It implements various important technologies such as single-machine multi-core parallelism, distributed computing, vectorized execution with SIMD instructions, and code generation. Multi-Core Parallelism ClickHouse divides data into multiple partitions, each partition is further divided into multiple index granularities, and … Read more

Solving Cache Misses in SIMD: A Distributed Frontier Paper Review

Solving Cache Misses in SIMD: A Distributed Frontier Paper Review

This article is based on the paper “Interleaved Multi-Vectorizing,” which has been accepted by VLDB 2020. The content below is personally interpreted by the first author Zhuhe Fang(Zhihu ID: 方竹河). For more details, please refer to the paper and video links at the end. VLDB (Very Large Database) conference started in 1975 and is one … Read more

In-Depth Analysis of TiFlash: Compiler-Based Automatic Vectorization Acceleration

In-Depth Analysis of TiFlash: Compiler-Based Automatic Vectorization Acceleration

SIMD (Single Instruction Multiple Data) is a technology that uses a single controller to manage multiple processors, executing the same operation on each element of a set of data (also known as a “data vector”), thereby achieving spatial parallelism. It is an important means of program acceleration. This article will briefly introduce some basic knowledge … Read more