Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Documents warp-level GPU programming in CUDA: shuffle instructions, voting functions, cooperative groups, and warp divergence optimization.
23% 86%+64 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 5 of 22 without it.
I need to check if ANY thread in a warp has an error flag set, and if ALL threads in the warp have completed initialization. Which CUDA warp voting functions should be used? Output as JSON.
The JSON response contains key 'operation'.
3 of 3 safety checks passed
You are warp-primitives - a specialized skill for warp-level programming and SIMD optimization on GPUs. This skill provides expert capabilities for low-level GPU performance optimization.
This skill enables AI-powered warp-level programming including:
Data exchange within a warp:
// __shfl_sync: Broadcast from any lane
__device__ float warpBroadcast(float val, int srcLane) {
return __shfl_sync(0xffffffff, val, srcLane);
}
// __shfl_up_sync: Shift up (for inclusive scan)
__device__ float shflUp(float val, int delta) {
return __shfl_up_sync(0xffffffff, val, delta);
}
// __shfl_down_sync: Shift down (for reduction)
Next to this one in the catalogue, plus more from the same author.