[Cbc] Enabling multithreading with CbcMain1

John J Forrest jjforre at us.ibm.com
Wed Jul 15 22:06:15 EDT 2009


Not really enough to go on.  Simple test seems OK.  If you can send me
something to replicate I can test.

John Forrest


                                                                                                                         
  From:       acw at ascent.com                                                                                             
                                                                                                                         
  To:         cbc at list.coin-or.org                                                                                       
                                                                                                                         
  Cc:         dev at ascent.com                                                                                             
                                                                                                                         
  Date:       07/15/2009 06:44 PM                                                                                        
                                                                                                                         
  Subject:    [Cbc] Enabling multithreading with CbcMain1                                                                
                                                                                                                         
  Sent by:    cbc-bounces at list.coin-or.org                                                                               
                                                                                                                         






We are trying to enable multithreading in our Cbc-based application.  Our
application was modeled on Cbc/examples/driver4.cpp, though we use custom
code to assemble the model, rather than reading from an MPS file.

We are seeing an exception and process quit in our early attempts to
specify the thread count.

The important bit is:

const char * argv2[ ] = {"driver3", "-threads", "0", "-solve", "-quit"};
CbcMain1(5, argv2, modelA, callBack);

The failure definitely occurs after control is handed to CbcMain1.  Have we
specified argv2 wrongly?  I just noticed that we got the command name wrong
("driver3") but I'm pretty sure this "zeroth" argument is ignored by
CbcMain1.

My understanding is that "-threads 0" disables multithreading in the
command-line interface; we were just testing the syntax before trying to
enable multithreading.

Thanks for your assistance._______________________________________________
Cbc mailing list
Cbc at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/cbc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/cbc/attachments/20090715/8d959b49/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://list.coin-or.org/pipermail/cbc/attachments/20090715/8d959b49/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://list.coin-or.org/pipermail/cbc/attachments/20090715/8d959b49/attachment-0001.gif 


More information about the Cbc mailing list