Mercurial > mxe-octave
annotate src/openblas.mk @ 6360:b87ffbfe80be
openblas: update to v0.3.21
* src/openblas.mk: update version, checksum
* src/mingw-openblas-1-xerbla.patch: update patch
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 10 Aug 2022 15:18:27 -0400 |
parents | 15776773d197 |
children | 4b8764444acb |
rev | line source |
---|---|
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 # This file is part of MXE. |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 # See index.html for further information. |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
3 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 PKG := openblas |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
6360
b87ffbfe80be
openblas: update to v0.3.21
John Donoghue <john.donoghue@ieee.org>
parents:
6095
diff
changeset
|
6 $(PKG)_VERSION := 0.3.21 |
b87ffbfe80be
openblas: update to v0.3.21
John Donoghue <john.donoghue@ieee.org>
parents:
6095
diff
changeset
|
7 $(PKG)_CHECKSUM := b052d196ad694b29302e074b3eb8cc66745f6e2f |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := OpenBLAS-$($(PKG)_VERSION) |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
9 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz |
4557 | 10 $(PKG)_URL := https://github.com/xianyi/OpenBLAS/archive/v$($(PKG)_VERSION).tar.gz |
5174
89431d3339ef
* src/openblas.mk: depend on BLAS for xerbla
John Donoghue
parents:
5148
diff
changeset
|
11 $(PKG)_DEPS := blas |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 |
5569
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
13 define $(PKG)_UPDATE |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
14 $(WGET) -q -O- 'https://github.com/xianyi/OpenBLAS/tags' | \ |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -Vr | \ |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
16 head -1 |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
17 endef |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
18 |
5522
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
19 ifeq ($(USE_CCACHE),yes) |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
20 $(PKG)_MXE_CC := $(shell basename $(MXE_CC)) |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
21 $(PKG)_MXE_F77 := $(shell basename $(MXE_F77)) |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
22 else |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
23 $(PKG)_MXE_CC := $(MXE_CC) |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
24 $(PKG)_MXE_F77 := $(MXE_F77) |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
25 endif |
c475092f8142
openblas: Support using ccache.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5463
diff
changeset
|
26 |
5569
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
27 $(PKG)_MAKE_OPTS := \ |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
28 PREFIX=$(HOST_PREFIX) \ |
5940
0c39f5c55d13
openblas: unconditionally use TARGET=GENERIC (bug #61246)
John W. Eaton <jwe@octave.org>
parents:
5626
diff
changeset
|
29 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 TARGET=GENERIC \ |
5569
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
30 NO_LAPACK=1 NO_CBLAS=1 \ |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
31 USE_THREAD=1 NUM_THREADS=24 \ |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
32 CC=$($(PKG)_MXE_CC) FC=$($(PKG)_MXE_F77) |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
33 ## This may also be needed on some systems: NO_AVX2=1 |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
34 |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
35 ifneq ($(MXE_NATIVE_BUILD),yes) |
c93838f0bcf2
Make OpenBLAS build rule independent of build system (bug #59206).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5522
diff
changeset
|
36 $(PKG)_MAKE_OPTS += HOSTCC=gcc HOSTFC=gfortran CROSS=1 CROSS_SUFFIX=$(MXE_TOOL_PREFIX) |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
37 endif |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
38 |
4734
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
39 ifeq ($(MXE_WINDOWS_BUILD),yes) |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
40 $(PKG)_MAKE_OPTS += EXTRALIB=-lxerbla |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
41 endif |
80461a9e516c
override default xerbla with version from Octave
John W. Eaton <jwe@octave.org>
parents:
4714
diff
changeset
|
42 |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4273
diff
changeset
|
43 ifeq ($(ENABLE_FORTRAN_INT64),yes) |
3568
f44dd0186692
allow native unixy builds of openblas to work on 64-bit systems
John W. Eaton <jwe@octave.org>
parents:
3508
diff
changeset
|
44 $(PKG)_MAKE_OPTS += BINARY=64 INTERFACE64=1 |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
45 endif |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
46 |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
47 define $(PKG)_BUILD |
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
48 $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS) |
3681
f0b359d91bf0
openblas: update to 0.2.10
John Donoghue <john.donoghue@ieee.org>
parents:
3568
diff
changeset
|
49 $(MAKE) -C '$(1)' -j 1 $($(PKG)_MAKE_OPTS) install |
3067
bdb4b64f2ff8
Add initial openblas codebase to mxe
John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
50 endef |