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 struct

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, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable, Writable

Methods​

write_to​

def 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.