cuda-python
CommunityPort GPU code with safe CPU fallbacks.
AuthorVKirill
Version1.0.0
Installs0
System Documentation
What problem does it solve?
GPU-accelerated Python code often breaks on machines without NVIDIA GPUs or with mismatched CUDA driver/toolkit/library versions, forcing developers to add brittle imports and scattered conditionals.
Core Features & Use Cases
- Optional-dependency routing (core artifact): detects CUDA at runtime, exposes an
xpnamespace (CuPy if usable, NumPy otherwise), and guarantees CPU-safe imports so the same package works in CI and production. - CUDA-capable tooling map: helps you choose between CuPy, Numba @cuda.jit, PyCUDA (legacy), and cuda-python (official low-level bindings) based on task level and debugging needs.
- High-stakes operational guidance: provides a symptom-indexed troubleshooting playbook for common CUDA failures like driver/toolkit mismatch and illegal memory access, plus memory-management and interop patterns.
Quick Start
Ask: "Plan and implement a CPU/GPU optional module using cuda-python optional dependency detection, then show how to write one function that uses xp on GPU when available and falls back to CPU when not."
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cuda-python Download link: https://github.com/VKirill/antigravity-for-claude-code/archive/main.zip#cuda-python Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.