From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add Julia. Date: Wed, 25 Mar 2015 19:24:14 +0100 Message-ID: <87k2y5q6k1.fsf@mango.localdomain> References: <87384vqtwh.fsf@netris.org> <87pp7yphom.fsf@netris.org> <87d23xoxp2.fsf@netris.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yapyf-0003cX-SM for guix-devel@gnu.org; Wed, 25 Mar 2015 14:24:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yapya-0004Qn-Mq for guix-devel@gnu.org; Wed, 25 Mar 2015 14:24:29 -0400 Received: from sinope.bbbm.mdc-berlin.de ([141.80.25.23]:36850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yapya-0004Pz-Co for guix-devel@gnu.org; Wed, 25 Mar 2015 14:24:24 -0400 In-Reply-To: <87d23xoxp2.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel --=-=-= Content-Type: text/plain Mark H Weaver writes: > Ricardo Wurmus writes: > >> May I suggest adding passing the "DYNAMIC_ARCH=1" flag in openblas >> instead of propagating non-substitutability to Julia? When built with >> "DYNAMIC_ARCH=1" the CPU type can be picked with the environment >> variable OPENBLAS_CORETYPE=. If I'm not mistaken this makes >> substitutions for openblas possible. >> >> What do you think? > > Yes, we should do this. Attached is a patch to make openblas substitutable. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0001-gnu-openblas-build-for-all-supported-CPUs.patch" >From 326fa66415fe8e9ed2b28a249b903f4a654b769e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 25 Mar 2015 19:20:11 +0100 Subject: [PATCH] gnu: openblas: build for all supported CPUs. * gnu/packages/maths.scm (openblas)[arguments]: Pass make flag "DYNAMIC_ARCH=1" to build library for all CPUs, making it substitutable. --- gnu/packages/maths.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 49667cc..57c1e9f 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1033,10 +1033,10 @@ constant parts of it.") (build-system gnu-build-system) (arguments '(#:tests? #f ;no "check" target - #:substitutable? #f ;force local build because of CPU detection #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "SHELL=bash" + "DYNAMIC_ARCH=1" "NO_LAPACK=1") ;; no configure script #:phases (alist-delete 'configure %standard-phases))) -- 2.1.0 --=-=-=--