ryantibs / quantgen

Tools for generalized quantile modeling
https://ryantibs.github.io/quantgen
14 stars 9 forks source link

Note gurobi default conditional multithreading, related compatibility and performance surprises #28

Open brookslogan opened 1 year ago

brookslogan commented 1 year ago

Context: in cmu-delphi/flu-hosp-forecast, we use a Python CLI script to call our R forecasting scripts. We tested out using rpy2 in those scripts, resulting in apparent nontermination on some systems for larger models. Debugging revealed a few interesting behaviors:

Ideally there'd be some way to programmatically detect and warn/adjust when the nontermination behavior's going to arise (and what the ideal number of threads would be), but we haven't completely pinned it down yet. Documentation edits might help. (Or maybe just having this issue filed will help others encountering incompatibilities to debug.)