Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Apr 2015 10:10:50 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r383282 - in head/math/py-theano: . files
Message-ID:  <201504051010.t35AAo3C040602@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Sun Apr  5 10:10:49 2015
New Revision: 383282
URL: https://svnweb.freebsd.org/changeset/ports/383282

Log:
  Use compiler:openmp to pull the correct CXX variable.
  Add some notes about how to use theano in multi-threaded mode.

Added:
  head/math/py-theano/files/
  head/math/py-theano/files/pkg-message.in   (contents, props changed)
Modified:
  head/math/py-theano/Makefile

Modified: head/math/py-theano/Makefile
==============================================================================
--- head/math/py-theano/Makefile	Sun Apr  5 10:05:46 2015	(r383281)
+++ head/math/py-theano/Makefile	Sun Apr  5 10:10:49 2015	(r383282)
@@ -15,7 +15,10 @@ COMMENT=	Optimizing compiler for evaluat
 RUN_DEPENDS=	${PYNUMPY} \
 		${PYTHON_PKGNAMEPREFIX}scipy>=0.8.0:${PORTSDIR}/science/py-scipy
 
-USES=		python
+USES=		compiler:openmp python
 USE_PYTHON=	concurrent distutils autoplist
 
+SUB_FILES=	pkg-message
+SUB_LIST=	CXX=${CXX}
+
 .include <bsd.port.mk>

Added: head/math/py-theano/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/py-theano/files/pkg-message.in	Sun Apr  5 10:10:49 2015	(r383282)
@@ -0,0 +1,15 @@
+To use Theano in multi-threaded mode, install OpenBLAS with option
+OPENMP enabled, install py-numpy with OpenBLAS support and use this
+minimal ~/.theanorc:
+
+---------------------------
+[global]
+cxx = %%CXX%%
+openmp = True
+
+[blas]
+ldflags = -lopenblasp
+---------------------------
+
+You can control the number of threads used with OMP_NUM_THREADS environment
+variable.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504051010.t35AAo3C040602>