alizainx/intelligence-systems-skills/cuda-cpp-warp-tensor
Claude Code and agent skill by alizainx/intelligence-systems-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
CUDA C++ coalesced memory access, shared-memory bank-conflict padding, warp-level `__shfl_sync` reductions, and Tensor Core WMMA/MMA.
Install
npx vskill@latest install alizainx/intelligence-systems-skills/cuda-cpp-warp-tensorSKILL.md
The same SKILL.md was published earlier as alizainx/intelligence-systems-skills/cuda-cpp-warp-tensor.
cuda-cpp-warp-tensor (ISS-044)
1. First-Principles Invariant
- Nickolls SIMT Warp-Coalescing Law: Consecutive threads (
threadIdx.x = 0..31) in a warp must access consecutive4/8/16-byteaddresses within a128-bytecache line, with zero warp divergence and zero shared-memory 32-bank conflicts.
2. Fast-Pass Low-Token Protocol (Web & Coding Agents)
- Perform intra-warp reductions in registers via
__shfl_down_sync(0xffffffffu, val, offset)before writing 1 scalar per warp to__shared__memory.
3. Zero-Bug & Zero-Vulnerability Guards
- Wrap every
cudaMalloc/cudaMemcpy/cudaStreamSynchronizeand kernel launch (cudaGetLastError()) in a deterministicCUDA_CHECK(err)macro. - Pad 2D
__shared__tiles by+1column (__shared__ float tile[32][33];) to eliminate 32-way bank conflicts on column striding. - Always pass an explicit
mask(0xffffffffuor__activemask()) to warp-synchronous intrinsics (__shfl_*_sync,__ballot_sync). - Overlap H2D/D2H transfers with compute using pinned host memory (
cudaMallocHost) and multiple non-blockingcudaStream_tstreams. - Verify race-free shared memory accesses and out-of-bounds global pointers with
compute-sanitizer --tool memcheckandracecheck.
4. Verification Gate
nvcc -std=c++17 -O3 -arch=sm_80 -Xcompiler -Wall,-Wextra,-Werror
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cuda-cpp-warp-tensor/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/cuda-cpp-warp-tensor)