From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: [PATCH] Attempt to fix OpenBLAS on MIPS. Date: Tue, 21 Jul 2015 11:15:10 -0400 Message-ID: <87zj2p1r0h.fsf@netris.org> References: 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]:53296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHZGO-00051s-Ig for guix-devel@gnu.org; Tue, 21 Jul 2015 11:15:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHZGI-0005Na-F9 for guix-devel@gnu.org; Tue, 21 Jul 2015 11:15:24 -0400 Received: from world.peace.net ([50.252.239.5]:34994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHZGI-0005NQ-Ax for guix-devel@gnu.org; Tue, 21 Jul 2015 11:15:18 -0400 In-Reply-To: (Ricardo Wurmus's message of "Mon, 20 Jul 2015 15:11:37 +0200") 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: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus writes: > Attached is a patch that *might* fix the build of OpenBLAS on MIPS. > > The LOONGSON3A and LOONGSON3B targets both enable the use of special > extended instructions which may not be available on other MIPS CPUs. > This patch forces the SICORTEX target to be used, which should limit the > code to only standard MIPS instructions. > > I don=E2=80=99t know if this would actually work and I note that SICORTEX= is > listed as a =E2=80=9Cmips=E2=80=9D target, rather than =E2=80=9Cmips64=E2= =80=9D, so maybe this is doomed > to fail. I would appreciate it if someone with a MIPS machine could > test this patch. With this patch, openblas builds successfully on mips64el, although I cannot say whether it works, since there are no tests. Is there a (preferably not huge) package that uses openblas and has a test suite that I could try? Mark