svn commit: r383282 - in head/math/py-theano: . files
Dmitry Sivachenko
demon at FreeBSD.org
Sun Apr 5 10:10:50 UTC 2015
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.
More information about the svn-ports-head
mailing list