22 : frequency_(frequency), name_(name) {}
38 clone->implementations_[i] = imp->Clone();
40 clone->implementations_[i] =
nullptr;
71 "Compute target not supported");
Contains code required by all agents.
static void Fatal(const std::string &location, const Args &... parts)
Prints fatal error message.
OpComputeTarget target_
The target that this operation implementation is supposed to run on.
void SelectComputeTarget(OpComputeTarget target)
bool IsComputeTargetSupported(OpComputeTarget target)
void TearDown()
Forwards call to implementation's TearDown function.
std::vector< OperationImpl * > implementations_
The different operation implementations for each supported compute target.
Operation(const std::string &name)
OpComputeTarget active_target_
The compute target that this operation will be executed on.
void AddOperationImpl(OpComputeTarget target, OperationImpl *impl)
void SetUp()
Forwards call to implementation's Setup function.