Callbacks

FilterPredicate (node, *user_data)

ProfilerFunc (kernel, queue, queued, submitted, start, end, *user_data)

TaskGenerateFunc (task, output, requisition)

TaskProcessFunc (task, inputs, output, requisition)

Details

Ufo.FilterPredicate(node, *user_data)
Parameters:
Return type:

bool

Ufo.ProfilerFunc(kernel, queue, queued, submitted, start, end, *user_data)
Parameters:
  • kernel (str) – Kernel name

  • queue (object or None) – OpenCL command queue

  • queued (int) – Queuing timestamp in ns

  • submitted (int) – Submit timestamp in ns

  • start (int) – Start timestamp in ns

  • end (int) – End timestamp in ns

  • user_data (object or None) – User data passed to Ufo.Profiler.foreach().

Specifies the type of functions passed to Ufo.Profiler.foreach().

Ufo.TaskGenerateFunc(task, output, requisition)
Parameters:
Return type:

bool

Ufo.TaskProcessFunc(task, inputs, output, requisition)
Parameters:
Return type:

bool