Lines Matching refs:driver
149 auto driver = Driver::get_driver(std::move(device)); in main() local
150 printf(" %4u %16s %16s\n", gpu_num, name.c_str(), driver ? "yes" : "no"); in main()
157 if (auto driver = Driver::get_driver(std::move(device.value()))) { in main() local
158 driver->init_perfcnt(); in main()
162 driver->enable_all_counters(); in main()
165 driver->enable_counter(id); in main()
169 driver->enable_perfcnt(std::chrono::nanoseconds(secs).count()); in main()
173 while (!driver->dump_perfcnt()) in main()
176 while (!driver->next()) in main()
180 for (auto &counter : driver->enabled_counters) { in main()
182 auto value = counter.get_value(*driver); in main()
197 if (auto driver = Driver::get_driver(std::move(device.value()))) { in main() local
198 driver->init_perfcnt(); in main()
201 for (auto &group : driver->groups) { in main()
211 if (auto driver = Driver::get_driver(std::move(device.value()))) { in main() local
212 driver->init_perfcnt(); in main()
215 for (uint32_t i = 0; i < driver->counters.size(); ++i) { in main()
216 auto &counter = driver->counters[i]; in main()