Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Hardcore Project for Internships
·
Module 2
High-Performance Vector Math with SIMD
1
Vector Similarity Search
Explain the use of high-dimensional vectors and distance metrics (Euclidean, Cosine) for similarity search.
2
Euclidean Distance and Cosine Similarity in C
Implement naive C functions to calculate Euclidean distance and Cosine similarity between two vectors.
3
Understanding Instruction-Level Parallelism and SIMD
Explain the concepts of instruction-level parallelism and SIMD (Single Instruction, Multiple Data).
4
Optimizing Euclidean Distance with AVX2 Intrinsics
Rewrite the Euclidean distance function using AVX2 SIMD intrinsics to process multiple floats simultaneously.
5
AVX2 FMA Dot Product
Implement a function to calculate the dot product of two vectors using AVX2 fused multiply-add (FMA) intrinsics.
6
Squared L2 Norm with AVX2
Implement a function to calculate the squared L2 norm of a vector using AVX2 intrinsics.
7
Optimized Cosine Similarity: SIMD Dot Product & L2 Norm
Combine the dot product and L2 norm functions to create a final, SIMD-accelerated Cosine similarity function.
8
Benchmarking Naive vs. SIMD Distance Calculation
Benchmark the performance difference between naive and SIMD distance calculations.
Previous module
C Project Foundations & Performance Tooling
Next module
Efficient I/O with Memory-Mapped Files