Cpu Kernels

Provides guidance for writing, optimizing, and benchmarking C++ CPU kernels with SIMD intrinsics (AVX2/AVX512) for the Hugging Face kernels ecosystem. Includes a two-phase workflow: Phase 1 correctness (generic → AVX2) and Phase 2 performance exploration (AVX512 with branching trial loop), runtime CPU dispatch, OpenMP threading, and brgemm integration for GEMM-heavy kernels.

Hugging Face b773a89 23 files · 189.6 KB Updated 10.8k repo stars

File contents

huggingface/kernels/tree/main/kernel-builder/skills/cpu-kernels commit b773a89d82

Frequently asked questions

npx skillmds@latest add huggingface/cpu-kernels