Skip to main content
Log in

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.

Aliases

  • AddressSpace = _GPUAddressSpace:

Structs

  • CacheEviction: Represents cache eviction policies for GPU memory operations.
  • CacheOperation: Represents different GPU cache operation policies.
  • 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