tvm
Loading...
Searching...
No Matches
timing.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
24#ifndef TVM_RUNTIME_TIMING_H_
25#define TVM_RUNTIME_TIMING_H_
26
27#include <tvm/ffi/function.h>
30#include <tvm/runtime/timer.h>
31
32namespace tvm {
33namespace runtime {
34
90
139 ffi::Function f, Device dev, int number, int repeat, int min_repeat_ms,
140 int limit_zero_time_iterations, int cooldown_interval_ms, int repeats_to_cooldown,
141 int cache_flush_bytes = 0, ffi::Function f_preproc = nullptr);
142
143} // namespace runtime
144} // namespace tvm
145
146#endif // TVM_RUNTIME_TIMING_H_
Timer for a specific device.
Definition timer.h:74
Abstract device memory management API.
Parent runtime-extra symbol visibility.
#define TVM_RUNTIME_EXTRA_DLL
Definition extra_base.h:45
TVM_RUNTIME_EXTRA_DLL ffi::Function WrapTimeEvaluator(ffi::Function f, Device dev, int number, int repeat, int min_repeat_ms, int limit_zero_time_iterations, int cooldown_interval_ms, int repeats_to_cooldown, int cache_flush_bytes=0, ffi::Function f_preproc=nullptr)
Wrap a timer function to measure the time cost of a given packed function.
TVM_RUNTIME_EXTRA_DLL Timer StartTimer(Device dev)
Get a device specific timer.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
DLDevice Device
Definition device_api.h:46
Device timer interface and object reference.