From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Add Julia. Date: Thu, 26 Mar 2015 17:58:26 +0100 Message-ID: <87d23vae6l.fsf@gnu.org> References: <87384vqtwh.fsf@netris.org> <87pp7yphom.fsf@netris.org> <87d23xoxp2.fsf@netris.org> <87twx7okgn.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52178) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbB7D-0004rW-PI for guix-devel@gnu.org; Thu, 26 Mar 2015 12:58:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbB77-0001yg-Ur for guix-devel@gnu.org; Thu, 26 Mar 2015 12:58:43 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:55751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbB6z-0001wO-74 for guix-devel@gnu.org; Thu, 26 Mar 2015 12:58:37 -0400 In-Reply-To: <87twx7okgn.fsf@netris.org> (Mark H. Weaver's message of "Thu, 26 Mar 2015 11:19:04 -0400") 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 Mark H Weaver skribis: > Mark H Weaver writes: > >> Ricardo Wurmus writes: >> >>> May I suggest adding passing the "DYNAMIC_ARCH=3D1" flag in openblas >>> instead of propagating non-substitutability to Julia? When built with >>> "DYNAMIC_ARCH=3D1" the CPU type can be picked with the environment >>> variable OPENBLAS_CORETYPE=3D. If I'm not mistaken this makes >>> substitutions for openblas possible. >>> >>> What do you think? >> >> Yes, we should do this. > > When reading this the first time, somehow I managed to miss the fact > that users will have to set OPENBLAS_CORETYPE to their CPU type. Me too actually. > Does that mean that openblas is unable to detect the CPU type > automatically? What does it do if OPENBLAS_CORETYPE is unset? > > Will we have to set it during the build of packages that use openblas, > such as Julia? Good points, this is a bit scary. I assumed openblas would just detect the CPU automatically at run time. Ludo=E2=80=99.