Storm 1.14.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SylvanDdManagerEnvironment.cpp
Go to the documentation of this file.
2
6
7namespace storm {
8
9SylvanDdManagerEnvironment::SylvanDdManagerEnvironment() : maximalMemory(4096), numberOfThreads(0) {
10 // Intentionally left empty.
11}
12
14 // Intentionally left empty
15}
16
18 return maximalMemory;
19}
20
22 maximalMemory = value;
23}
24
26 if (numberOfThreads == 0) {
27 // Automatic detection
28#ifdef ARM
29 // Prevents issues with multi-threaded execution on ARM architecture
30 return 1ul;
31#else
32 return std::max(UINT64_C(1), storm::utility::getNumberOfThreads());
33#endif
34 }
35 return numberOfThreads;
36}
37
39 numberOfThreads = value;
40}
41
42} // namespace storm
uint64_t getMaximalMemory() const
Retrieves the maximal amount of memory (in megabytes) that Sylvan can occupy.
uint64_t getNumberOfThreads() const
Retrieves the number of threads used by Sylvan.
uint64_t getNumberOfThreads()
Definition threads.cpp:55