-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems in using concurrent solver, both tny and omp not works #780
Comments
Hello @richardclli! Thanks for your issue. Can you please just confirm whether SCIP is actually using parallelism to solve your problem, and isn't just using a single thread when you call |
Yes, concurrent solving is reported in the log. So the case using TPI=omp is working properly when I just bypass the SCIPtpiGetNumThreads() checking. I am checking the source code why SCIPtpiGetNumThreads() returns 1 when using TNY=omp, but no clues yet.
|
I face the same problem. SCIPOPT Suite version = 8.1.0 System
|
Hey @mmghannam, can you take a look at this? I haven't been able to figure out what's wrong. There have been some problems with this method over time, it seems. |
Hey, @richardclli @Alpha-Girl! I also need to use Can you give me a step-by-step on how you compiled SCIP with the parallelism option, and how you linked pyscipopt to it? EDIT: I was finally able to use |
Yes, I am pretty sure about this. And I managed to make it works with the following tweaks:
Now I am trying to see how concurrent solve be scale up, not sure if it can works well in the HPC (super computing) environment. |
Interesting, I was able to compile with the tny option in Ubuntu. But please do let me know if the speedup is achieved! Cheers :) |
Yes, I can compile as well, but it will gives a core dump immediately when trying to solve. |
I debugged it within pyscipopt and scip. PySCIPOpt/src/pyscipopt/scip.pxi Line 3414 in 6a17c96
As tpi=omp, As tpi=tny, I suggest that PySCIPOpt/src/pyscipopt/scip.pxi Lines 3414 to 3417 in 6a17c96
and the test code test_model.py, fix code as below Lines 83 to 91 in 6a17c96
|
Wow, nice catch. |
Describe the bug
SCIPOPT Suite version = 8.1.0
Compile options: TPI=tny
Problem: cause segmentation fault
SCIPOPT Suite version = 8.1.0
Compile options: TPI=omp
Problem: Forced to call SCIPsolve() instead of SCIPsolveConcurrent() because SCIPtpiGetNumThreads() returns 1
Workaround: Modify scip.pxi and force to skip the check can run concurrent solve successfully
System
pyscipopt
? Self compile both scipopt suite and PySCIPOptAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: