24 #ifndef TVM_RUNTIME_THREADING_BACKEND_H_ 25 #define TVM_RUNTIME_THREADING_BACKEND_H_ 55 ThreadGroup(
int num_workers, std::function<
void(
int)> worker_callback,
56 bool exclude_worker0 =
false);
109 #endif // TVM_RUNTIME_THREADING_BACKEND_H_ A platform-agnostic abstraction for managing a collection of thread pool threads. ...
Definition: threading_backend.h:39
void Join()
Blocks until all non-main threads in the pool finish.
void Yield()
Platform-agnostic no-op.
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
ThreadGroup(int num_workers, std::function< void(int)> worker_callback, bool exclude_worker0=false)
Creates a collection of threads which run a provided function.
Definition: threading_backend.h:65
AffinityMode
Definition: threading_backend.h:64
void ResetThreadPool()
Reset the threads in the pool. All current threads are destroyed and new ones are created...
int Configure(AffinityMode mode, int nthreads, bool exclude_worker0)
configure the CPU id affinity
Definition: threading_backend.h:66