Skip to main content
Log in

Mojo struct

PDLLevel

@register_passable(trivial) struct PDLLevel

Programmatic Dependency Launch (PDL) level.

Aliases

  • OFF = PDLLevel(0):
  • OVERLAP_AT_END = PDLLevel(1):
  • OVERLAP_AT_BEGINNING = PDLLevel(2):
  • NO_WAIT_OVERLAP_AT_END = PDLLevel(3):

Implemented traits

AnyType, UnknownDestructibility

Methods

__init__

__init__() -> Self

Initialize the PDL level to OFF.

__init__(level: Int) -> Self

Initialize the PDL level.

Args:

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

__eq__

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

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

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

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

__ne__

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

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

__gt__

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

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

__ge__

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

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