You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note how a c-line starts right in the middle of a v-line.
It appears that both threads are writing without synchronization. I can reliably reproduce the problem on Win10, x64, both when writing to StdOut and when redirecting output to a file.
The text was updated successfully, but these errors were encountered:
Hi,
this is actually by design. clasp currently only synchronizes output of models (i.e. v lines of different models won't intermingle) and ensures that individual comments lines are printed as a whole. However, during solving it does not do any synchronization between comment lines (which are mostly intended for debugging/informational purposes) and output of models and/or optimization values as this would complicate the design and slow down solving.
One compromise between full synchronization and intermingled output that I could easily implement would be to suppress (and discard) output of comments while a model is printed.
When I run clasp 3.3.3 with a single thread, everything works as expected:
If I allow clasp to use more than one thread, the following thing happens:
Note how a c-line starts right in the middle of a v-line.
It appears that both threads are writing without synchronization. I can reliably reproduce the problem on Win10, x64, both when writing to StdOut and when redirecting output to a file.
The text was updated successfully, but these errors were encountered: