Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/lookup/AbstractUntemplatedLookupTableGenerator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,19 @@ class AbstractUntemplatedLookupTableGenerator
*/
virtual void SetPacingFrequency(double frequency) = 0;

/**
* Set the maximum number of evaluations (simulations) to run at once, each on its own thread.
* Defaults to the number of cores available on the machine.
*
* @param numThreads The number of threads to use (at least 1).
*/
virtual void SetNumThreads(unsigned numThreads) = 0;

/**
* @return The maximum number of evaluations that will run at once.
*/
virtual unsigned GetNumThreads() const = 0;

/**
* Helper method that just returns DIM, to avoid template chaos.
*/
Expand Down
Loading
Loading