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

StreamPriorityRange

struct StreamPriorityRange

Represents the range of valid stream priorities for a GPU device.

Stream priorities control the scheduling of GPU operations, with higher priority streams being executed preferentially over lower priority streams.

Fields

  • least (Int): The lowest (numerically smallest) priority value.
  • greatest (Int): The highest (numerically largest) priority value.

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable, Writable

Methods

write_to

write_to(self, mut writer: T)

Writes the stream priority range to the given writer.

Args:

  • writer (T): The writer to output the stream priority range to.