cuda-writing

Guide CUDA kernel development with launch parameters and synchronization patterns.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/jarmak-personal/vibeSpatial --skill cuda-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cuda-writing
Source: https://github.com/jarmak-personal/vibeSpatial/tree/main/.agents/skills/cuda-writing
Command: npx skills add https://github.com/jarmak-personal/vibeSpatial --skill cuda-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides structured guidance on writing, modifying, and reviewing GPU kernels and CUDA code to improve performance and correctness.

Core Features & Use Cases

  • GPU Kernel Development: Assists in creating, optimizing, and debugging CUDA kernels based on best practices.
  • Streamlining GPU Dispatch Logic: Guides decisions on kernel lifecycle, stream overlap, and tier classification for GPU tasks.
  • Use Case: A developer optimizing a new spatial analysis operation on GPU can consult this Skill for systematic kernel lifecycle management, synchronization strategies, and primitive selection.

Quick Start

Use the cuda-writing skill to understand how to classify your GPU operation and implement kernel launch configurations effectively.

Frequently Asked Questions about cuda-writing

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

FAQPage Schema
How do I optimize GPU kernel launch configurations for spatial analysis workloads?

Optimize GPU kernel launch configurations by applying tier decision trees and best practices for device memory management. This Skill provides systematic kernel lifecycle management to improve CUDA performance and correctness for high-performance spatial workloads.

What is the best way to manage device memory and synchronization patterns in CUDA?

Manage device memory and synchronization patterns in CUDA by following structured guidance on memory tiers and stream management. This Skill outlines synchronization strategies and primitive selection to ensure correct and efficient GPU kernel execution.

How do I classify GPU operations to streamline GPU dispatch logic and stream overlap?

Classify GPU operations by using tier decision trees to determine kernel lifecycle and stream overlap. This Skill guides decisions on GPU dispatch logic, helping you systematically categorize and execute tasks for optimal performance.

Can I use this guidance for debugging and reviewing existing CUDA code?

Yes, you can use this guidance for debugging and reviewing existing CUDA code. The Skill provides comprehensive instructions and best practices for modifying and reviewing GPU kernels to improve both performance and correctness.

When should I not use specific CUDA synchronization strategies or kernel primitives?

You should reconsider specific CUDA synchronization strategies when they conflict with the tier classification of your GPU operation. This Skill helps you avoid incorrect primitive selection by mapping synchronization patterns to appropriate kernel lifecycles and stream management scenarios.