WeSearch

Akasxh/gpucheck: pytest for GPU kernels

·11 min read · 0 reactions · 0 comments · 12 views
#gpu#testing#software
Akasxh/gpucheck: pytest for GPU kernels
⚡ TL;DR · AI summary

gpucheck is a pytest plugin designed for testing GPU kernels, simplifying the process of validating CUDA and Metal kernels. It offers features such as dtype-aware assertions, parametric testing, and memory leak detection. The plugin has been tested against various configurations, revealing several bugs and providing enhancements for Apple Silicon support.

Key facts
Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

gpucheck pytest for GPU kernels. GPU kernel testing is painful. You write a CUDA or Metal kernel, eyeball torch.allclose with magic tolerances, and pray it works on a different GPU architecture. gpucheck is a pytest plugin that gives you dtype-aware assertions, parametric testing across dtypes/shapes/devices, GPU-event benchmarking, shape and stride fuzzing, and memory leak detection -- all from decorators and fixtures you already know how to use. CUDA + Apple MPS are first-class.

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub