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

PDLLevel

struct PDLLevel

Programmatic Dependency Launch (PDL) level.

Implemented traits

AnyType, Copyable, Defaultable, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

comptime members

NO_WAIT_OVERLAP_AT_END

comptime NO_WAIT_OVERLAP_AT_END = PDLLevel(Int(3))

PDL no-wait overlap at end of kernel.

OFF

comptime OFF = PDLLevel(Int(0))

PDL disabled.

ON

comptime ON = PDLLevel(Int(1))

PDL enabled with default behavior.

OVERLAP_AT_BEGINNING

comptime OVERLAP_AT_BEGINNING = PDLLevel(Int(2))

PDL overlap at beginning of kernel.

OVERLAP_AT_END

comptime OVERLAP_AT_END = PDLLevel.ON

PDL overlap at end of kernel.

Methods

__init__

def __init__() -> Self

Initialize the PDL level to OFF.

def __init__(level: Int) -> Self

Initialize the PDL level.

Args:

  • level (Int): The PDL level to initialize.

__eq__

def __eq__(self, other: Self) -> Bool

Check if the PDL level is equal to another PDL level.

Args:

  • other (Self): The other PDL level to compare against.

Returns:

Bool: True if the PDL level is equal to the other PDL level, False otherwise.

def __eq__(self, other: Int) -> Bool

Check if the PDL level is equal to another PDL level.

Args:

  • other (Int): The other PDL level to compare against.

Returns:

Bool: True if the PDL level is equal to the other PDL level, False otherwise.

__ne__

def __ne__(self, other: Self) -> Bool

Check if the PDL level is not equal to another PDL level.

Args:

  • other (Self): The other PDL level to compare against.

Returns:

Bool: True if the PDL level is not equal to the other PDL level, False otherwise.

__gt__

def __gt__(self, other: Self) -> Bool

Check if the PDL level is greater than another PDL level.

Args:

  • other (Self): The other PDL level to compare against.

Returns:

Bool: True if the PDL level is greater than the other PDL level, False otherwise.

__ge__

def __ge__(self, other: Self) -> Bool

Check if the PDL level is greater than or equal to another PDL level.

Args:

  • other (Self): The other PDL level to compare against.

Returns:

Bool: True if the PDL level is greater or equal to the other PDL level, False otherwise.