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, broadcastThis module provides warp-level primitives including shuffle operations, reductions, broadcasts, and synchronization.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!