Skip to content

Commit

Permalink
MDD should not cause more OOMs
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 14, 2024
1 parent 86e630f commit 208ff04
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fun boundedPortfolio25(
backendConfig =
BackendConfig(
backend = Backend.MDD,
memlimit = portfolioConfig.backendConfig.memlimit,
memlimit = portfolioConfig.backendConfig.memlimit / 5 * 4,
solverHome = portfolioConfig.backendConfig.solverHome,
timeoutMs = 0,
specConfig =
Expand Down Expand Up @@ -377,7 +377,8 @@ fun boundedPortfolio25(
edges.add(Edge(bmcConfig, indConfig, if (inProcess) timeoutOrNotSolvableError else anyError))
edges.add(Edge(indConfig, imcConfig, if (inProcess) timeoutOrNotSolvableError else anyError))

return STM(mddConfig, edges)
return if (inProcess) STM(mddConfig, edges)
else STM(bmcConfig, edges) // mdd should not be run not-in-proc
}

logger.write(Logger.Level.RESULT, "Using bounded portfolio\n")
Expand Down

0 comments on commit 208ff04

Please sign in to comment.