TaskSequencerConfig Struct Reference

#include <kaldi-thread.h>

Collaboration diagram for TaskSequencerConfig:

Public Member Functions

 TaskSequencerConfig ()
 
void Register (OptionsItf *opts)
 

Public Attributes

int32 num_threads
 
int32 num_threads_total
 

Detailed Description

Definition at line 156 of file kaldi-thread.h.

Constructor & Destructor Documentation

◆ TaskSequencerConfig()

TaskSequencerConfig ( )
inline

Definition at line 159 of file kaldi-thread.h.

Member Function Documentation

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 160 of file kaldi-thread.h.

References OptionsItf::Register().

Referenced by main().

160  {
161  opts->Register("num-threads", &num_threads, "Number of actively processing "
162  "threads to run in parallel");
163  opts->Register("num-threads-total", &num_threads_total, "Total number of "
164  "threads, including those that are waiting on other threads "
165  "to produce their output. Controls memory use. If <= 0, "
166  "defaults to --num-threads plus 20. Otherwise, must "
167  "be >= num-threads.");
168  }

Member Data Documentation

◆ num_threads

◆ num_threads_total

int32 num_threads_total

Definition at line 158 of file kaldi-thread.h.

Referenced by TaskSequencer< C >::TaskSequencer(), and kaldi::TestTaskSequencer().


The documentation for this struct was generated from the following file: