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-tensor

SKILL.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 consecutive 4/8/16-byte addresses within a 128-byte cache 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

  1. Wrap every cudaMalloc/cudaMemcpy/cudaStreamSynchronize and kernel launch (cudaGetLastError()) in a deterministic CUDA_CHECK(err) macro.
  2. Pad 2D __shared__ tiles by +1 column (__shared__ float tile[32][33];) to eliminate 32-way bank conflicts on column striding.
  3. Always pass an explicit mask (0xffffffffu or __activemask()) to warp-synchronous intrinsics (__shfl_*_sync, __ballot_sync).
  4. Overlap H2D/D2H transfers with compute using pinned host memory (cudaMallocHost) and multiple non-blocking cudaStream_t streams.
  5. Verify race-free shared memory accesses and out-of-bounds global pointers with compute-sanitizer --tool memcheck and racecheck.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alizainx/intelligence-systems-skills/cuda-cpp-warp-tensor/badge)](https://verified-skill.com/skills/alizainx/intelligence-systems-skills/cuda-cpp-warp-tensor)

Something wrong with this skill or its page? Tell us.