[Cbc] muti-thread compile for cbc-2.7.8

Ted Ralphs ted at lehigh.edu
Wed Nov 28 15:52:05 EST 2012


I just built Cbc 2.7.8 in OSX 10.8 with --enable-cbc-parallel and executed
with "-threads 4" and it works fine. You'll have to give some more details,
such as what compiler(s) you're using. I'm using the g++ that comes with
XCode.

i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build
5658) (LLVM build 2336.11.00)

Ted


On Wed, Nov 28, 2012 at 5:11 AM, Noli Sicad <nsicad at gmail.com> wrote:

> Hi Stefan,
>
>
> > Try
> >   cbc -thread 4
> > or
> >   cbc -threads 4
>
> My i7 cpu (8 threads) and cbc only works with 1 thread (i.e. cbc
> -threads 1) and if I put
> -threads 2 or more, I got this error;
>
> #######
>
> /Users/nsicad/.config/gedit/tools/cbc-mip: line 13: 90443 Segmentation
> fault: 11  /usr/local/bin/cbc $GEDIT_CURRENT_DOCUMENT_NAME% -proximity
> on -threads 2
>
> #######
>
> No matter what configure switch I put on:
>
> e.g.
>
> #######
>
> ./configure CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64"
> --enable-cbc-parallel --enable-gnu-packages  --enable-debug -C
> --prefix=/usr/local
>
> or
>
>
> ./configure CFLAGS='-m64 -O3' CC=gcc-4.7 --enable-gnu-packages
> --enable-cbc-parallel --enable-debug -C --prefix=/usr/local
>
> #########
>
> My platform is Mac OS X 10.8.2 Macbookpro retina - basic unit.
>
> Noli
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20121128/36f8c6ae/attachment.html>


More information about the Cbc mailing list