Skip to main content

Mojo module

warp

GPU warp-level operations (deprecated - use gpu.primitives.warp module).

This module is deprecated. For new code, import the warp module from gpu.primitives:

# Deprecated:
from gpu.warp import shuffle, reduce, broadcast

# Recommended (import the module):
from gpu.primitives import warp
# Then use: warp.shuffle(), warp.reduce(), warp.broadcast()

# Or import specific functions:
from gpu.primitives.warp import shuffle, reduce, broadcast

This module provides warp-level primitives including shuffle operations, reductions, broadcasts, and synchronization.

Was this page helpful?