Snakepit.Error.OutOfMemory exception (Snakepit v0.8.7)

View Source

Out of memory error for GPU operations.

Contains information about the requested allocation, available memory, and suggestions for recovery.

Summary

Types

device()

@type device() ::
  :cpu | :mps | {:cuda, non_neg_integer()} | {:rocm, non_neg_integer()}

t()

@type t() :: %Snakepit.Error.OutOfMemory{
  __exception__: true,
  available_bytes: non_neg_integer(),
  device: device(),
  message: String.t(),
  operation: String.t() | nil,
  requested_bytes: non_neg_integer(),
  suggestions: [String.t()]
}