tvm
Classes | Functions
tvm::runtime::threading Namespace Reference

Classes

class  ThreadGroup
 A platform-agnostic abstraction for managing a collection of thread pool threads. More...
 

Functions

void Yield ()
 Platform-agnostic no-op. More...
 
int MaxConcurrency ()
 
void ResetThreadPool ()
 Reset the threads in the pool. All current threads are destroyed and new ones are created. More...
 

Function Documentation

◆ MaxConcurrency()

int tvm::runtime::threading::MaxConcurrency ( )
Returns
the maximum number of effective workers for this system.

◆ ResetThreadPool()

void tvm::runtime::threading::ResetThreadPool ( )

Reset the threads in the pool. All current threads are destroyed and new ones are created.

Note that this does nothing when openmp is used.

◆ Yield()

void tvm::runtime::threading::Yield ( )

Platform-agnostic no-op.