Commit Graph

70 Commits

Author SHA1 Message Date
Frederik Rietdijk
867552957f openblas: fix static musl build 2020-01-03 12:50:47 +01:00
Tobias Mayer
db5d3cdfe2 openblas: partially fix static build 2019-12-31 15:05:13 +01:00
Markus Kowalewski
6ff8958bef openblas: 0.3.6 -> 0.3.7 2019-08-18 11:49:24 +02:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
volth
f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00
Niklas Hambüchen
8d5864eb47 openblas: Add enableStatic flag 2019-05-28 08:57:23 +02:00
Niklas Hambüchen
43fda1c96d openblas: 0.3.5 -> 0.3.6 2019-05-28 08:57:23 +02:00
Markus Kowalewski
6968c4f305 openblas: turn off AVX512 optimizations
The AVX512 optimization has a bug in openblas-0.3.5
and can also lead to slower code on Xeon Silver CPUs.

See https://github.com/xianyi/OpenBLAS/issues/1955
and https://github.com/xianyi/OpenBLAS/issues/2029
2019-04-27 07:07:49 +02:00
Markus Kowalewski
fa28a838f3
openblas: fix aarch64 build 2019-03-31 12:19:41 +02:00
Averell Dalton
d7806fe4ed openblas: adjust makeFlags handling 2019-02-23 09:13:57 +01:00
Will Dietz
32322da1a6 openblas: fix config breakage introduced for configs using 'false'
My earlier change mistakenly expected `toString false` to produce '0'
instead of the empty string, leading to unexpected config changes.

Intended to address issue mentioned here and in following discussion:

https://github.com/NixOS/nixpkgs/pull/53972#issuecomment-459981602

Sorry, folks!

(special-case handling of bools here makes this "cleanup" a bit
 less of an obvious win but hopefully still preferable overall :))

-----------

makeFlags in resulting derivation, according to this one-liner:

$ nix show-derivation -f . openblas|jq ".[].env.makeFlags"

before:
"BINARY=64 CC=cc CROSS= DYNAMIC_ARCH=1 FC=gfortran HOSTCC=cc INTERFACE64=1 NO_BINARY_MODE= NO_STATIC=1 NUM_THREADS=64 PREFIX=/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 TARGET=ATHLON USE_OPENMP=1"

after:
"BINARY=64 CC=cc CROSS=0 DYNAMIC_ARCH=1 FC=gfortran HOSTCC=cc INTERFACE64=1 NO_BINARY_MODE=0 NO_STATIC=1 NUM_THREADS=64 PREFIX=/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9 TARGET=ATHLON USE_OPENMP=1"

Without knowing how `placeholder` works, it seems interesting if
entirely unrelated that the `PREFIX` is same for both! :). TIL.
2019-02-17 19:51:55 +01:00
Matthew Bauer
2433c575f0 openblas: fix on linux
This reverse changes made cfc4313 which broke builds on linux. Still
not sure why this broke Linux, but we can investigate it later.
“buildPackages.stdenv.cc” shouldn’t be put in nativeBuildInputs in
general. Either way, this restores hashes to before that commit.

thanks to @jethrokuan
2019-02-10 20:16:16 -05:00
Matthew Bauer
cfc43138cb openblas: fix on darwin
The openblas script relies on CC=clang for succesfully compiling on
Darwin systems. This seems like bad behavior, but we get things like
https://hydra.nixos.org/build/87657058 otherwise.

Fixes #55536.
2019-02-10 18:49:04 -05:00
Vladimír Čunát
5effa4e0f9
Merge branch 'master' into staging-next
Comments on conflicts:
- llvm: d6f401e1 vs. 469ecc70 - docs for 6 and 7 say the default is
  to build all targets, so we should be fine
- some pypi hashes: they were equivalent, just base16 vs. base32
2019-02-01 09:22:29 +01:00
Markus Kowalewski
57c37456db
openblas: make the optimazation target overridable 2019-01-29 14:34:02 +01:00
Will Dietz
1f0467005d openblas: 0.3.4 -> 0.3.5, rework a bit (#53972)
* openblas: simplify a bit, fix doCheck so tests are enabled non-cross.

* doCheck should be 'true' in (at least) the non-cross case,
  this looks like an inverted check that's largely benign
* doCheck will be set to 'false' in the cross case anyway,
  makeDerivation does this IIRC
* targetPrefix can be used without checking, probably by design

Derivation hash does change but no "real" functionality change intended.

* openblas: nix types for config attrs (hash-preserving)

* openblas: more nix-ification, merge in cross attrs, prefer to always set

(but set appropriately for cross and non-cross cases both)

* I'm not sure what NO_BINARY_MODE does,
  this change now sets explicitly false in the non-cross scenario
  (previously unset unless cross).
* Drop musl NO_AFFINITY case, will be removed in upgrade shortly

* openblas: 0.3.4 -> 0.3.5
2019-01-15 16:36:07 +01:00
Frederik Rietdijk
05ee1015bb openblas: fix cross-compilation 2019-01-15 10:11:33 +01:00
Bas van Dijk
72eae72223 openblas: fix build on x86_64-darwin
See: https://github.com/xianyi/OpenBLAS/issues/1926
2018-12-20 13:25:44 +01:00
Frederik Rietdijk
4deb04a97a openblas: 0.3.3 -> 0.3.4 2018-12-07 15:21:25 +01:00
John Ericson
c701d6cb21 Merge remote-tracking branch 'upstream/master' into staging 2018-09-25 14:20:27 -04:00
Will Dietz
8a0a34f766 openblas: try leaving openmp enabled w/musl 2018-09-25 00:08:17 -05:00
Dmitry Vyal
81caec3568 openblas-0.3.1 -> 0.3.3 2018-09-23 09:35:29 +02:00
Timo Kaufmann
408eacbc89 openblas: fix pkg-config alias name
Turns out the filename is important. It should be `cblas`, not
`openblas-cblas`.
2018-09-03 23:57:45 +02:00
Robert Schütz
93550cbddf Merge branch 'master' into staging-next 2018-08-31 17:32:48 +02:00
John Ericson
2c2f1e37d4 reewide: Purge all uses stdenv.system and top-level system
It is deprecated and will be removed after 18.09.
2018-08-30 17:20:32 -04:00
Timo Kaufmann
c614c15f93
Merge pull request #45257 from timokau/openblas-pc
openblas: add pkg-config aliases
2018-08-26 20:13:19 +02:00
Timo Kaufmann
26d5d030fe openblas: add pkg-config aliases 2018-08-21 16:39:57 +02:00
Jake Waksbaum
8374400cec fflas-ffpack: Add darwin support 2018-08-18 20:28:06 +00:00
Will Dietz
1b3d8eefe3 openblas: backport another patch, fix crash w/Go and Octave
Also fixes numpy crashing during tests w/musl.
2018-07-12 12:03:26 -05:00
Timo Kaufmann
d2f0fc1f41 openblas: backport fix
https://github.com/xianyi/OpenBLAS/issues/1666

Causing test failures in cvxopt and (according to an openblas issue) numpy.
2018-07-11 22:06:32 +02:00
aszlig
c8ed322b04
openblas: 0.3.0 -> 0.3.1
Since the exposure of the version attribute done in
892a0e8ff4, the OpenBLAS build fails for
i686-linux:

https://nix-cache.s3.amazonaws.com/log/wi79zyfmwdpwx7bm29dzqh4vglx3x550-openblas-0.3.0.drv

According to @edolstra the build slaves of Hydra updated to a new
kernel, which seems to be the real cause for this issue. The latter is
already tracked upstream[1] and a fix[2] is already included in version
0.3.1.

This very update cases 4795 rebuilds across all architectures we
support, so it's still not significant enough to go through staging. In
addition the number of rebuilds doesn't include the amount of builds
that are currently failing.

My original idea was to add a patch just for fixing this on i686-linux
and do the real update via staging, but the amount of rebuilds still is
in an acceptable range IMO and @edolstra agreed on that on IRC.

[1]: https://github.com/xianyi/OpenBLAS/issues/1575
[2]: https://github.com/xianyi/OpenBLAS/pull/1583

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @ttuegel
2018-07-01 18:46:36 +02:00
Timo Kaufmann
892a0e8ff4 openblas: expose version attribute 2018-06-30 01:20:44 +02:00
Will Dietz
912b58a2c1 openblas: workaround mass-rebuilds
Thanks for the suggestion:
https://github.com/NixOS/nixpkgs/pull/41639#issuecomment-395509669
2018-06-07 13:38:08 -05:00
Will Dietz
b1d54822e4 openblas: remove patch that's no longer needed (PR merged) 2018-06-07 12:20:08 -05:00
R. RyanTM
9d1d274928 openblas: 0.2.20 -> 0.3.0 (#41054) 2018-06-03 13:23:38 +00:00
Will Dietz
837538da43 openblas: don't build w/openmp on musl 2018-03-15 18:27:22 -05:00
Will Dietz
8dfe068f86 openblas: patch to fix on non-glibc 2018-02-13 09:44:48 -06:00
Will Dietz
c8081971f4 openblas: NO_AFFINITY=1 fix for musl 2018-02-13 09:44:48 -06:00
Tuomas Tynkkynen
722295fc15 openblas: Support ARMv6 2017-12-30 00:19:57 +02:00
georgewhewell
73b65551f4 openblas: add aarch64 platform config 2017-12-11 19:22:07 +02:00
Silvan Mosberger
f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00
Frederik Rietdijk
ec59e3b3f5 openblas: 0.2.19 -> 0.2.20 2017-07-28 18:08:06 +02:00
Matthew Bauer
bd8654f45d openblas: disable static libs
Disable static on openblas. This should save about 57M from closure sizes.
2017-02-12 18:45:44 -06:00
Thomas Tuegel
bed668c051
openblas: refactor and set TARGET always 2016-12-10 16:49:45 -06:00
Falco Peijnenburg
5f5f0614b0 Support for ARM in openblas
Attempting to build openblas on ARM resulted in the error "unsopported system: armv7l_linux". This PR resolves that issue and some other issues that pop up when trying to build openblas for ARM.
2016-11-18 12:44:49 +01:00
Dmitry Kalinkin
a8eb57d953
openblas: silence warnings on darwin
Without this one gets a lot of build time warnings like:

ld: warning: object file (/tmp/strip.2OzFn8) was built for newer OSX
version (10.9) than being linked (10.7)
2016-10-23 21:19:14 -04:00
Thomas Tuegel
a58ec829e4
openblas: disable some hardening flags 2016-10-22 12:57:40 -05:00
Thomas Tuegel
d94abcb157
openblas: 0.2.17 -> 0.2.19 2016-09-09 19:42:54 -05:00
Frederik Rietdijk
c1abb1d404 openblas: 0.2.15 -> 0.2.17 2016-03-28 15:58:10 +02:00
Pascal Wittmann
7fd2796e99 Replace 'with plaforms; platform' with 'platforms.platform' 2015-11-17 21:30:43 +01:00