math/coinmp: Add PARALLEL option

- Add PARALLEL option to enable the CBC threads parameter (disabled by default). Using multiple
  threads can significantly improve perfomance in some cases.

Reported by:	Kostas Oikonomou <ko@research.att.com> via email
This commit is contained in:
Carlos J. Puga Medina 2018-03-16 11:29:01 +00:00
parent b56c7d27b5
commit bf9217982c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=464677

View file

@ -22,10 +22,11 @@ USES= libtool pathfix pkgconfig tar:tgz
USE_LDCONFIG= yes
CXXFLAGS+= -ffast-math
OPTIONS_DEFINE= DEBUG DOCS FORTRAN GLPK
OPTIONS_DEFINE= DEBUG DOCS FORTRAN GLPK PARALLEL
FORTRAN_DESC= Use BLAS/LAPACK with the Fortran interface
GLPK_DESC= GNU Linear Programming Kit support
PARALLEL_DESC= Enable CBC threads support
PORTDOCS= *
@ -40,6 +41,8 @@ GLPK_CONFIGURE_ON= --with-gmpl-incdir=${LOCALBASE}/include \
--with-gmpl-lib="-L${LOCALBASE}/lib -lglpk"
GLPK_CONFIGURE_OFF= --disable-glpk-libcheck
PARALLEL_CONFIGURE_ON= --enable-cbc-parallel
STRIP_FILES= libCoinUtils libOsi libOsiClp libOsiCommonTests libClp libClpSolver \
libCgl libCbc libCbcSolver libOsiCbc libCoinMP