summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2015-04-05 10:10:49 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2015-04-05 10:10:49 +0000
commita6e0a8e2944882f119d74008eed5566b7236fbe4 (patch)
tree27fc18b91759f21c2869658bb682dff4a2d3040d /math
parentRemove dead mirror (diff)
Use compiler:openmp to pull the correct CXX variable.
Add some notes about how to use theano in multi-threaded mode.
Notes
Notes: svn path=/head/; revision=383282
Diffstat (limited to 'math')
-rw-r--r--math/py-theano/Makefile5
-rw-r--r--math/py-theano/files/pkg-message.in15
2 files changed, 19 insertions, 1 deletions
diff --git a/math/py-theano/Makefile b/math/py-theano/Makefile
index 5cd223f09022..35c4e3b98908 100644
--- a/math/py-theano/Makefile
+++ b/math/py-theano/Makefile
@@ -15,7 +15,10 @@ COMMENT= Optimizing compiler for evaluating math expressions on CPUs and GPUs
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>
diff --git a/math/py-theano/files/pkg-message.in b/math/py-theano/files/pkg-message.in
new file mode 100644
index 000000000000..37a8c3b330d9
--- /dev/null
+++ b/math/py-theano/files/pkg-message.in
@@ -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.