Poplar and PopLibs
|
This file is for internal use only and should not be used. More...
#include <poplar/Graph.hpp>
#include <poplar/PerfEstimateFunc.hpp>
#include <poplar/Target.hpp>
#include <poplar/VertexIntrospector.hpp>
#include <poputil/VertexTemplates.hpp>
#include <poputil/exceptions.hpp>
#include <functional>
#include <iterator>
#include <regex>
#include <string>
Go to the source code of this file.
Namespaces | |
namespace | poputil |
General utility functions for building graphs. | |
Macros | |
#define | MAKE_PERF_ESTIMATOR_NAME(codelet) getPerfEstimateFor##codelet |
These macros reduce the amount of boiler plate code when writing perf- estimators for codelets. More... | |
This file is for internal use only and should not be used.
#define MAKE_PERF_ESTIMATOR_NAME | ( | codelet | ) | getPerfEstimateFor##codelet |
These macros reduce the amount of boiler plate code when writing perf- estimators for codelets.
E.g. for a templated codelet class named 'MyCodelet': `poplar::VertexPerfEstimate MAKE_PERF_ESTIMATOR_NAME(MyCodelet)(const VertexIntrospector &vertex, const Target &target, args...) { // compute your performance estimate vertex.getFieldInfo("myField"); // access to field size info target.getDataPathWidth(); // access to target info return estimate; }`