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.
$npx -y skills add huggingface/kernels --skill cpu-kernelsInstalls into the current project.
Run `npx skills use "https://github.com/huggingface/kernels" --skill "huggingface/kernels/cpu-kernels"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/huggingface/kernels" that are relevant to the current task. Run `npx skills add "https://github.com/huggingface/kernels"` and select the relevant skills, then follow their instructions.