Poplar and PopLibs
TargetType.hpp
1// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
2
3#ifndef poplar_TargetType_hpp
4#define poplar_TargetType_hpp
5
6#include <string>
7
8namespace poplar {
10enum class TargetType {
11 IPU,
12 IPU_MODEL,
14 CPU
17};
18
21std::string toString(TargetType t);
22
23} // end namespace poplar
24
25#endif // poplar_TargetType_hpp
Poplar classes and functions.
Definition: ArrayRef.hpp:14
std::string toString(RecoveryAction recoveryAction)
Convert the recovery action to a string.
TargetType
Enum to represent the type of a device capable of running a graph.
Definition: TargetType.hpp:10
@ CPU
Run code on the CPU.
@ IPU
Run on real IPU hardware.
@ IPU_MODEL
Model of the IPU which actually runs on the CPU but behaves like an IPU.