dirkschumacher / rcbc

COIN-OR branch and cut (CBC) bindings for R
https://dirkschumacher.github.io/rcbc/
Other
20 stars 5 forks source link

Enable parallel by default --enable-cbc-parallel #18

Closed dirkschumacher closed 6 years ago

dirkschumacher commented 7 years ago

The best way seems to be to download the source and compile it with --enable-cbc-parallel

Otherwise you cannot use multiple threads.

wget http://www.coin-or.org/download/source/Cbc/Cbc-2.9.8.tgz
gunzip Cbc-2.9.8.tgz
tar xvf Cbc-2.9.8.tar
cd Cbc-2.9.8
mkdir build
cd build
../configure --enable-cbc-parallel
make install
export PKG_CONFIG_PATH="/path/to/build/lib/pkgconfig";
export LD_LIBRARY_PATH="/path/to/build/lib"
Rscript -e "devtools::install_github('dirkschumacher/rcbc')"

see also https://github.com/JuliaOpt/Cbc.jl

byapparov commented 6 years ago

@dirkschumacher Why do you think this should be done before the cran release?

dirkschumacher commented 6 years ago

Yes it must be sorted out outside of the package. Recently the homebrew formula was updated to enable parallel configuration.