24 #ifndef ARM_COMPUTE_TEST_INSTRUMENTS 25 #define ARM_COMPUTE_TEST_INSTRUMENTS 71 switch(instrument.first)
74 switch(instrument.second)
77 stream <<
"WALL_CLOCK_TIMER";
80 stream <<
"WALL_CLOCK_TIMER_MS";
83 stream <<
"WALL_CLOCK_TIMER_S";
86 throw std::invalid_argument(
"Unsupported instrument scale");
90 switch(instrument.second)
93 stream <<
"SCHEDULER_TIMER";
96 stream <<
"SCHEDULER_TIMER_MS";
99 stream <<
"SCHEDULER_TIMER_S";
102 throw std::invalid_argument(
"Unsupported instrument scale");
106 switch(instrument.second)
118 throw std::invalid_argument(
"Unsupported instrument scale");
122 stream <<
"PMU_CYCLE_COUNTER";
125 stream <<
"PMU_INSTRUCTION_COUNTER";
128 switch(instrument.second)
140 throw std::invalid_argument(
"Unsupported instrument scale");
144 switch(instrument.second)
147 stream <<
"OPENCL_TIMER";
150 stream <<
"OPENCL_TIMER_US";
153 stream <<
"OPENCL_TIMER_MS";
156 stream <<
"OPENCL_TIMER_S";
159 throw std::invalid_argument(
"Unsupported instrument scale");
163 switch(instrument.second)
166 stream <<
"OPENCL_MEMORY_USAGE";
169 stream <<
"OPENCL_MEMORY_USAGE_K";
172 stream <<
"OPENCL_MEMORY_USAGE_M";
175 throw std::invalid_argument(
"Unsupported instrument scale");
185 throw std::invalid_argument(
"Unsupported instrument type");
std::pair< InstrumentType, ScaleFactor > InstrumentsDescription
Class provides access to CPU hardware counters.
This file contains all available output stages for GEMMLowp on OpenCL.
inline::std::istream & operator>>(::std::istream &stream, DatasetMode &mode)
InstrumentsDescription instrument_type_from_name(const std::string &name)
inline::std::ostream & operator<<(::std::ostream &stream, DatasetMode mode)