From owner-svn-ports-all@FreeBSD.ORG Sun Apr 5 10:10:50 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D438E141; Sun, 5 Apr 2015 10:10:50 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BFCBC859; Sun, 5 Apr 2015 10:10:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t35AAoda040604; Sun, 5 Apr 2015 10:10:50 GMT (envelope-from demon@FreeBSD.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t35AAo3C040602; Sun, 5 Apr 2015 10:10:50 GMT (envelope-from demon@FreeBSD.org) Message-Id: <201504051010.t35AAo3C040602@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: demon set sender to demon@FreeBSD.org using -f From: Dmitry Sivachenko Date: Sun, 5 Apr 2015 10:10:50 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2015 10:10:50 -0000 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 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.