From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] openblas on MIPS. Date: Thu, 29 Oct 2015 22:57:58 +0100 Message-ID: <87wpu5gwwp.fsf@mdc-berlin.de> References: <87a8r18l9f.fsf@gnu.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]:38142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrvD0-0006RA-Ae for guix-devel@gnu.org; Thu, 29 Oct 2015 17:58:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrvCx-0005Gm-4E for guix-devel@gnu.org; Thu, 29 Oct 2015 17:58:10 -0400 In-Reply-To: <87a8r18l9f.fsf@gnu.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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Court=C3=A8s writes: > Ricardo Wurmus skribis: > >> I tried building OpenBLAS on one of the MIPS build slaves and it went >> through the build phase without errors when I set the TARGET to >> SICORTEX. Unfortunately, this doesn=E2=80=99t mean that OpenBLAS actu= ally works >> on MIPS: one of the tests fails. >> >> Meanwhile OpenBLAS version 0.2.15 was released and I just updated our >> package. It may well be that this bug has already been fixed by the n= ew >> release. >> >> At any rate, I think the two attached patches (one to pass >> TARGET=3DSICORTEX on MIPS; another to enable substitutes for MIPS) are= an >> improvement. We can use substitutes for MIPS (and ARM for that matter= ) >> only when TARGET is specified. The only MIPS target that seems to wor= k >> for us appears to be SICORTEX as the other supported targets use >> Loongson extensions. > > Nice! > >> From 5132d4f9a36e65439b1295c672ad41364016e6a9 Mon Sep 17 00:00:00 2001 >> From: Ricardo Wurmus >> Date: Thu, 29 Oct 2015 15:42:09 +0100 >> Subject: [PATCH 1/2] gnu: openblas: Set TARGET to SICORTEX on MIPS. >> >> * gnu/packages/maths.scm (openblas)[arguments]: Add "TARGET=3DSICORTEX= " to >> make-flags when building for MIPS. > > Sounds good but=E2=80=A6 > >> - '("DYNAMIC_ARCH=3D1") >> - ;; On MIPS we force the SICORTEX TARGET, as for th= e other >> - ;; two available MIPS targets special Loongson ext= ended >> - ;; instructions are used. >> - (if (string-prefix? "mips" (%current-system)) >> - '("TARGET=3DSICORTEX") > > This doesn=E2=80=99t seem to be a patch against master, is it? Oh, I must have forgotten to rebase and squash. I=E2=80=99ll edit the co= mmit and resend the patch tomorrow. ~~ Ricardo