You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/scala/sharedDefs.scala
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -282,12 +282,15 @@ package object sharedDefs {
282
282
283
283
/** n != 1 for parallel portfolio solving with competing solver instances (specified number of threads not guaranteed)
284
284
* Keep in mind that the machine might decrease maximum core frequencies with more cores being utilized.
285
-
* -x sets number of solver threads in dependency of number of cores, problem size and other factors. For small
286
-
* problems with number of positive literals (ri.e., in case of SAT: #variables) smaller -x (with x < 0), only a single solver thread is launched.
285
+
* -x sets number of solver threads in dependency of number of cores, problem size and other factors, with an upper limit of upperLimitAutoSolverThreads.
286
+
* For small problems with number of positive literals (i.e., in case of SAT: #variables) smaller -x (with x < 0), only a single solver thread is launched.
287
287
* NB: diff-SAT also spawns some parallelism from within individual solver threads, so normally no all cores should be occupied by solvers.
288
288
* Commandline: --solverarg maxSolverThreadsR n */
289
289
varmaxSolverThreadsR:Int=-1
290
290
291
+
/** Upper limit for automatically determined number of solver threads if maxSolverThreadsR < 0 */
292
+
varupperLimitAutoSolverThreads:Int=999999999
293
+
291
294
/** If not empty, only the specified threads will be executed. All other threads will be ignored.
292
295
* E.g., if a total of 6 threads are specified using maxSolverThreadsR and threadSelect = Seq(2,3),
293
296
* only threads $2 and $3 are actually started, whereas $1 and $4 are omitted.
@@ -715,8 +718,8 @@ package object sharedDefs {
715
718
/** See source code */
716
719
varmaxApproachSwitchesPerSolverThread:Int=Int.MaxValue// maximum number of switches per solver thread if slowThreadAction = 3
717
720
718
-
/**See source code*/
719
-
varenforceProgressChecksEveryTrialsR:Int=if (abandonOrSwitchSlowThreads !=0d) 200000else (if (debug) 200000else300000) // report regular solving progress _at least_ every x solver trials
721
+
/**Report regular solving progress at least every x solver trials. Must be a power of 2.*/
//val progressReportImprovThresh = if (diffSAT.debug) 100 else 100 // report progress also if reduction of unassigned literals is at least this threshold
0 commit comments