IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo module

memory

This module provides GPU memory operations and utilities.

The module implements low-level memory operations for GPU programming, with a focus on:

  • Memory address space abstractions (global, shared, constant)
  • Cache control operations and policies
  • Memory access patterns and optimizations
  • Memory alignment and pointer manipulation

It provides a unified interface for memory operations across different GPU architectures, with specialized implementations for NVIDIA and AMD GPUs where needed.

The module is designed for performance-critical code and requires careful usage to achieve optimal memory access patterns and cache utilization.

Structs​

  • ​CacheEviction: Represents cache eviction policies for GPU memory operations.
  • ​Consistency: Represents memory consistency models for GPU memory operations.
  • ​Fill: Represents memory fill patterns for GPU memory operations.
  • ​ReduceOp: Represents reduction operations for parallel reduction algorithms.

Functions​

Was this page helpful?