CompilerQueue public API. 更多...
#include <OnnxCompiler.h>
Public 成员函数 | |
| CompilerQueue (uint32_t count) | |
| Constructs a CompilerQueue. | |
| ~CompilerQueue () | |
| Releases CompilerQueue resources. | |
| std::future< CompiledProgram > | enqueue (std::string source) |
| Enqueue CPU-only shader compilation. @lifetime Captured timing slots belong to this queue. stop() joins every worker before their destruction; resetPeak() follows the prior waitIdle(). @thread Called by the owning device thread, like waitIdle() and resetPeak(). | |
| size_t | peakWorkers () const noexcept |
| Peak workers. | |
| void | waitIdle () noexcept |
| Waits idle. | |
| void | resetPeak () noexcept |
| Resets peak. | |
详细描述
CompilerQueue public API.
在文件 OnnxCompiler.h 第 23 行定义.
构造及析构函数说明
◆ CompilerQueue()
|
inlineexplicit |
Constructs a CompilerQueue.
Locks lock.
Job.
Locks lock.
Stops stop.
在文件 OnnxCompiler.h 第 57 行定义.
引用了 count.
◆ ~CompilerQueue()
|
inline |
Releases CompilerQueue resources.
在文件 OnnxCompiler.h 第 94 行定义.
成员函数说明
◆ enqueue()
|
inline |
Enqueue CPU-only shader compilation. @lifetime Captured timing slots belong to this queue. stop() joins every worker before their destruction; resetPeak() follows the prior waitIdle(). @thread Called by the owning device thread, like waitIdle() and resetPeak().
Job.
Moves move.
Locks lock.
在文件 OnnxCompiler.h 第 102 行定义.
引用了 eve::gpgpu::compileComputeSpirv(), future, mutex, result, source , 以及 start.
◆ peakWorkers()
|
inlinenoexcept |
Peak workers.
在文件 OnnxCompiler.h 第 134 行定义.
◆ resetPeak()
|
inlinenoexcept |
Resets peak.
在文件 OnnxCompiler.h 第 155 行定义.
◆ waitIdle()
|
inlinenoexcept |
该类的文档由以下文件生成:
- src/modules/tensor/OnnxCompiler.h