simd-optimization

Optimize SIMD code paths for x86_64 AVX2/AVX-512 and ARM NEON.

51|3|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/rust-works/succinctly --skill simd-optimization
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: simd-optimization
Source: https://github.com/rust-works/succinctly/tree/main/.claude/skills/simd-optimization
Command: npx skills add https://github.com/rust-works/succinctly --skill simd-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and apply SIMD optimization patterns to improve cross-architecture performance on x86_64 and ARM targets.

Core Features & Use Cases

  • Architecture-aware optimizations: Utilize AVX2/AVX-512 on x86_64 and NEON on ARM to maximize throughput.
  • In-depth guidance: Provide best practices for using intrinsics, target_feature attributes, and runtime dispatch strategies.
  • Use Case: When implementing performance-critical math routines, apply SIMD patterns to achieve measurable speedups across platforms.

Quick Start

Provide an initial SIMD optimization pass by identifying a target hot loop and applying architecture-aware vectorization patterns.

Frequently Asked Questions about simd-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize SIMD code paths for cross-architecture performance?▼

Apply architecture-aware vectorization patterns to target hot loops, using runtime dispatch strategies and intrinsics to maximize throughput across x86_64 and ARM platforms while maintaining portability.

What is the best way to use AVX2 and ARM NEON intrinsics without breaking cross-platform compatibility?▼

Use target_feature attributes for architecture-specific tuning and implement runtime feature detection to ensure cross-architecture compatibility while applying AVX2, AVX-512, or NEON intrinsics.

How does runtime feature detection work for SIMD vectorization?▼

Runtime dispatch strategies detect available CPU features at execution time, allowing your program to select the appropriate SIMD vectorization path, such as AVX-512 or NEON, ensuring optimal performance safely.

When do I need to apply SIMD optimization patterns to math routines?▼

Implement SIMD vectorization when facing performance-critical math routines that require measurable speedups, applying architecture-aware patterns to process multiple data points simultaneously for maximum throughput.

What are common pitfalls when using target_feature attributes for intrinsics?▼

Common pitfalls include portability concerns and unsafe usage; apply best practices for target_feature attributes and intrinsics to avoid architecture-specific bugs and ensure cross-architecture compatibility.