16const std::string SylvanSettings::maximalMemoryOptionName =
"maxmem";
17const std::string SylvanSettings::threadCountOptionName =
"threads";
29 "value",
"The number of threads available to Sylvan (0 means 'auto-detect').")
64 "Sylvan does not properly work for multiple threads on Apple Silicon. We recommend limiting the number of threads to 1.");
virtual uint_fast64_t getValueAsUnsignedInteger() const =0
Retrieves the value of this argument as an unsigned integer.
virtual bool getHasBeenSet() const
Retrieves whether the argument has been set.
static ArgumentBuilder createUnsignedIntegerArgument(std::string const &name, std::string const &description)
Creates an unsigned integer argument with the given parameters.
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
This is the base class of the settings for a particular module.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
uint_fast64_t getMaximalMemory() const
Retrieves the maximal amount of memory (in megabytes) that Sylvan can occupy.
static const std::string moduleName
SylvanSettings()
Creates a new set of Sylvan settings.
uint_fast64_t getNumberOfThreads() const
Retrieves the amount of threads available to Sylvan.
bool check() const override
Checks whether the settings are consistent.
bool isNumberOfThreadsSet() const
Retrieves whether the number of threads to use was set.
#define STORM_LOG_WARN_COND(cond, message)
SettingsType const & getModule()
Get module.
uint getNumberOfThreads()