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, Equatable, 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 OVERLAP_AT_BEGINNING.

Programmatic dependent launch is on by default: a kernel that does not opt out waits for its predecessor before its first dependent read and releases its own dependents as soon as it has done so. Pass PDLLevel.OFF to launch without PDL.

__eq__​

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.

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

Was this page helpful?