RunOption

class RunOption(rounds: int = 1, *, timeout: int = 0)

Dynamic options when the module run.

Constructor for the RunOption class. Internal use only.

Parameters:
  • rounds (int) -- The number of inner loop iterations within the kernel.

  • timeout (int) -- Per-launch sync timeout in microseconds. 0 (the default) means "not set": the Module layer resolves the effective timeout once per Run, falling back to the HDPL_API_TIMEOUT env var, then the built-in 100 s default.

Methods

__init__

Constructor for the RunOption class.

core_mask

Get the core_mask option.

rounds

Get the rounds option.

set_core_mask

Set the core_mask option.

set_rounds

Set the rounds option.

set_timeout

Set the per-launch sync timeout in microseconds.

timeout

Get the per-launch sync timeout in microseconds.