Opened 5 years ago
Closed 5 years ago
#23879 closed defect (duplicate)
Various doctest failures if cbc is installed
Reported by: | jdemeyer | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | sage-duplicate/invalid/wontfix |
Component: | packages: optional | Keywords: | |
Cc: | mderickx, mkoeppe | Merged in: | |
Authors: | Reviewers: | Jeroen Demeyer | |
Report Upstream: | N/A | Work issues: | |
Branch: | u/jdemeyer/various_doctest_failures_if_cbc_is_installed (Commits, GitHub, GitLab) | Commit: | 439fa392f2b909b24c7cea32c9d3f1f517010d28 |
Dependencies: | Stopgaps: |
Description (last modified by )
With the optional package cbc
installed (and no other optional package):
---------------------------------------------------------------------- sage -t --long src/sage/combinat/designs/orthogonal_arrays_build_recursive.py # Killed due to segmentation fault sage -t --long src/sage/graphs/digraph.py # Bad exit: 127 sage -t --long src/sage/graphs/generic_graph.py # Killed due to abort sage -t --long src/sage/graphs/graph_coloring.py # Killed due to abort sage -t --long src/sage/graphs/graph.py # Killed due to abort sage -t --long src/sage/libs/gap/assigned_names.py # 1 doctest failed sage -t --long src/sage/numerical/backends/gurobi_backend.pyx # Killed due to abort sage -t --long src/sage/graphs/graph_decompositions/vertex_separation.pyx # Timed out ----------------------------------------------------------------------
Since the failures refer to memory allocation errors, this is because cbc
requires a very large amount of memory (more than what #23748 allows).
One simple fix is to never use the cbc
solver by default.
Change History (9)
comment:1 Changed 5 years ago by
- Description modified (diff)
comment:2 Changed 5 years ago by
- Branch set to u/jdemeyer/various_doctest_failures_if_cbc_is_installed
comment:3 Changed 5 years ago by
- Cc mkoeppe added
- Commit set to 439fa392f2b909b24c7cea32c9d3f1f517010d28
- Description modified (diff)
comment:4 Changed 5 years ago by
- Status changed from new to needs_review
comment:5 Changed 5 years ago by
- Description modified (diff)
comment:6 Changed 5 years ago by
- Description modified (diff)
comment:7 Changed 5 years ago by
The underlying problem is probably the same as #23892, namely that cbc is using too many threads. Now how to limit the number of threads that cbc uses?
comment:8 Changed 5 years ago by
We use cbc via the c++ interface, the only place where I found how to set from the c++ interface is at https://www.coin-or.org/Doxygen/Cbc/classCbcModel.html#a6174c612fd1bfdc372bfc292bf0ee383 . However I do not know enough of CBC to actually do this. The discussion here https://list.coin-or.org/pipermail/cbc/2014-November/001566.html might be related.
comment:9 Changed 5 years ago by
- Milestone changed from sage-8.1 to sage-duplicate/invalid/wontfix
- Resolution set to duplicate
- Reviewers set to Jeroen Demeyer
- Status changed from needs_review to closed
Fixed in #23713
New commits:
Do not use CBC solver by default