lava-nc / lava-optimization

Neuromorphic mathematical optimization with Lava
https://lava-nc.org/optimization.html
BSD 3-Clause "New" or "Revised" License
51 stars 26 forks source link

added folded_compilation option in SolverConfig #270

Closed ymeng-git closed 11 months ago

ymeng-git commented 11 months ago

Issue Number:

Objective of pull request:

"folded_compilation" is added as a boolean option in SolverConfig with default value to False. This is to ease the compilation of parallel QUBO solver demo-ing on big systems.

When it's set to True by a user, all internal SolutionFinder(s) will be compiled based on folded view to speed up the compilation.

Pull request checklist

Your PR fulfills the following requirements:

Pull request type

Please check your PR type: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation changes - [ ] Other (please describe): ## What is the current behavior?

-

What is the new behavior?

-

Does this introduce a breaking change?

Supplemental information

ymeng-git commented 10 months ago

For multi-instance workload, setting (SolverConfig.folded_compilation = True) will automatically enable the folded compilation in Lava and Lava-loihi.