Compute Library
ClUnitWorkload Struct Reference

The basic atomic unit in a ClWorkload. More...

#include <ClWorkload.h>

Collaboration diagram for ClUnitWorkload:

Public Member Functions

 ClUnitWorkload ()=default
 ClUnitWorkload (Id id, UnitWorkloadStage stage, const ClKernelCode &code)

Data Fields

ClKernelCode code {}
- Data Fields inherited from UnitWorkload
Id id {}
 Id of the unit workload. More...
UnitWorkloadStage stage {}
 Stage. More...


bool operator== (const ClUnitWorkload &uworkload0, const ClUnitWorkload &uworkload1)

Additional Inherited Members

- Public Types inherited from UnitWorkload
using Id = DependencyGraph::Id

Detailed Description

The basic atomic unit in a ClWorkload.

It contains exactly one kernel to run.

Definition at line 133 of file ClWorkload.h.

Constructor & Destructor Documentation

◆ ClUnitWorkload() [1/2]

ClUnitWorkload ( )

◆ ClUnitWorkload() [2/2]

ClUnitWorkload ( Id  id,
UnitWorkloadStage  stage,
const ClKernelCode code 

Definition at line 136 of file ClWorkload.h.

137  : UnitWorkload{ id, stage }, code{ code }
138  {
139  }

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ClUnitWorkload uworkload0,
const ClUnitWorkload uworkload1 

Definition at line 140 of file ClWorkload.h.

141  {
142  return uworkload0.stage == uworkload1.stage && uworkload0.code == uworkload1.code;
143  }

Field Documentation

◆ code

ClKernelCode code {}

Definition at line 144 of file ClWorkload.h.

The documentation for this struct was generated from the following file: