Commit Graph

38 Commits

Author SHA1 Message Date
R. RyanTM
94af1a462c suitesparse: 5.8.1 -> 5.9.0 2021-03-15 22:57:29 +01:00
Ben Siraphob
66e44425c6 pkgs/development/libraries: stdenv.lib -> lib 2021-01-21 19:11:02 -08:00
Doron Behar
6bbfd17e34 suitesparse: assert that compatible lapack and blas are used 2020-10-01 21:53:44 +03:00
Doron Behar
b34ca89335 suitesparse: 5.7.2 -> 5.8.1
Update dependencies. Remove not needed `BLAS` and `LAPACK` makeFlags for
non darwin systems.
2020-10-01 21:53:21 +03:00
Graham Bennett
e10228defa suitesparse: remove custom fixDarwinDylibNames postInstall
This shadows the regular fixDarwinDylibNames function, which is a
nativeBuildInput, and prevents it from converting some relative paths to
absolute.  According to the comment this can be removed as of 5.7.2.
2020-09-06 19:57:21 +01:00
Matthew Bauer
ff2f2644f8 blas,lapack: use isILP64 instead of is64bit
This is a better name since we have multiple 64-bit things that could
be referred to.

LP64  : integer=32, long=64, pointer=64
ILP64 : integer=64, long=64, pointer=64
2020-04-20 16:02:43 -05:00
Matthew Bauer
1c8aba8334 treewide: use blas and lapack
This makes packages use lapack and blas, which can wrap different
BLAS/LAPACK implementations.

treewide: cleanup from blas/lapack changes

A few issues in the original treewide:

- can’t assume blas64 is a bool
- unused commented code
2020-04-17 16:24:09 -05:00
R. RyanTM
1450740470 suitesparse: 5.7.1 -> 5.7.2 2020-04-10 11:55:20 -07:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jan Tojnar
b552b84ae2
suitesparse: ultimate clean-up
* Switch to default buildPhase & installPhase
* In preConfigure
	* Do not add -DNPARTITION to CHOLMOD_CONFIG. That would disable the use of Metis but we already have that.
	* Do not remove -lrt on Darwin, Darwin compiler can handle that and the code no longer exists anyway.
	* With CUDA enabled
		* Do not replace CUDA_ROOT. It does not exist any more. Instead we are setting CUDA_PATH in makeFlags.
		* Do not replace GPU_BLAS_PATH, it defaults to CUDA_PATH so it will end up with the same value.
		* Do not add -DCHOLMOD_OMP_NUM_THREADS to GPU_CONFIG. Why would be having the library use the same number of threads as the builder a good idea?
		* Do not replace CUDA_PATH, we are setting it in makeFlags now.
		* Do not replace CUDART_LIB and CUBLAS_LIB. They were being replaced incorrectly (cuda libs are located in lib directory, not lib64). Instead set the correct paths in makeFlags.
		* Do not replace CUDA_INC_PATH. Its default looks like it will end up with the same value.
		* Do not replace NV20, NV30, NV35 – not used any more.
		* Do not replace NVCC, defaults to the same.
		* Do not replace NVCCFLAGS, we just used the default from SourceSparse 4.4.7 with -gencode=arch=compute_60,code=compute_60 tacked on top. Current upstream default looks much better.
* Stop adding -DNTIMER to CFLAGS on Darwin – clock_gettime is supported by macOS 10.12 SDK.
* In buildPhase
	* Move the make arguments to makeFlags and library to buildFlags, allowing us to drop the manual make call. I did not verify all of these are still needed.
	* Remove the creation of libsuitesparse.so. As far as I could tell it is some kind of remnant of our old expression – perhaps due to past deficiencies of the build scripts, we created the individual libraries as symlinks to libsuitesparse.so: e36b3ec0a5 But since the build script can now build individual .so libraries, there should be no need for this abomination. No other distros do this either.
* In installPhase
	* No need to copy things manually, there is an install target. We just need to pass INSTALL=$out flag to make to let it know where to install the files.
	* I do not have means of verifying the darwin dylib name fix but it looks like it might be fixed in an upcoming release.
	* I dropped the rpath fixup as it does not seem to be needed any more (ldd does not report any unresolved libraries).
2020-03-11 03:45:25 +01:00
Jan Tojnar
c16d5b6534
suitesparse: do not build Mongoose & GraphBLAS
We already have package for them
2020-03-11 02:33:06 +01:00
Jan Tojnar
306cf6091f
suitesparse: link against system metis 2020-03-10 21:16:28 +01:00
Jan Tojnar
e9d7774b7b
suitesparse: 5.4.0 → 5.7.1 2020-03-10 21:16:27 +01:00
Jan Tojnar
40ae28791f
suitesparse: clean up
* Split to multiple outputs
* Fetch source from GitLab (the only source for future releases)
* Re-order attrset to be more idiomatic
* Format with nixpkgs-fmt
2020-03-10 20:35:44 +01:00
Josef Kemetmüller
1cc9b2501d suitesparse: Enable parallel building 2020-03-10 17:16:17 +01: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
Timo Kaufmann
04ba895ecd
suitesparse: 5.3.0 -> 5.4.0 (#53128) 2019-01-01 15:47:55 +01:00
Tristan Konolige
00005ce0bd suitesparse: Fix darwin support
Suitesparse libraries would end up containing references to the build
directory. fixDarwinDylibNames appears to not fix this problem. We
manually use intall_name_tool to set the library paths correctly.
2018-12-18 18:08:17 -07:00
Daiderd Jordan
5b8c4b0646
suitesparse: fixup darwin libraries
The build created libraries with an install_name that points to the
build directory instead of the installation prefix.  Causing errors like
this when other packages try to link against it's libraries.

    Library not loaded: /private/tmp/nix-build-suitesparse-5.3.0.drv-0/SuiteSparse/lib/libcholmod.3.0.12.dylib
2018-11-13 00:25:32 +01:00
Jaakko Luttinen
8fb27604fb
suitesparse: 4.4.4 -> 5.3.0 2018-10-10 07:36:00 +03:00
John Ericson
5aec3f96a2 treewide: Use *Platform.extensions 2017-09-13 11:16:10 -04:00
Joachim Fasting
540a6412e3
suitesparse_4_4: NIX_CFLAGS -> NIX_CFLAGS_COMPILE
Tested with nix-build -A suitesparse_4_4
2017-04-12 19:27:03 +02:00
Joachim Fasting
a883581ddb
suitesparse_4_2: remove bogus NIX_CFLAGS
NIX_CFLAGS should be NIX_CFLAGS_COMPILE; since pic is the default, we
simply remove the bogus declaration.

Tested with nix-build -A suitesparse_4_2
2017-04-12 19:26:58 +02:00
Matthew Daiter
d712c04d25 suitesparse: refining CUDA support 2017-04-04 17:23:20 +02:00
Matthew Daiter
6f721ce534 suitesparse: add CUDA support 2017-03-29 15:47:51 +02:00
Robin Gloster
1b979d8384 Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-08-03 13:34:44 +00:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Robin Gloster
3f45f0948d Merge remote-tracking branch 'upstream/master' into hardened-stdenv 2016-03-15 01:44:24 +00:00
Anthony Cowley
f3a6f3e2f3 suitesparse: build dylibs on darwin
Makes the shared libraries usable on darwin so that, e.g., the Julia
compiler may be built.
2016-03-13 04:13:26 -04:00
Anthony Cowley
9d1053dc6d suitesparse: darwin compatibility
There is no librt on darwin, so it must be disabled.
2016-03-12 21:17:15 -05:00
Robin Gloster
acb408646e remove local pic flags, now set by hardened stdenv 2016-01-30 16:36:57 +00:00
Thomas Tuegel
0daee71b1c suitesparse: link shared library against openblas 2015-10-11 09:16:34 -05:00
Thomas Tuegel
e36b3ec0a5 suitesparse: build shared libraries 2015-06-04 17:42:03 -05:00
Thomas Tuegel
a17d8bcc4b suitesparse_4_4: update to 4.4.4 2015-06-04 17:42:02 -05:00
Thomas Tuegel
e5ee1a0577 suitesparse: remove unnecessary patches 2015-06-04 17:42:02 -05:00
Thomas Tuegel
b02f300c44 suitesparse_4_4_1: build with openblas
Compared to ATLAS, OpenBLAS offers better performance, faster builds,
and dynamic architecture detection.
2015-06-04 17:42:01 -05:00
Thomas Tuegel
982aabc561 suitesparse_4_2: build with openblas
Compared to ATLAS, OpenBLAS offers better performance, faster builds,
and dynamic architecture detection.
2015-06-04 17:42:01 -05:00
Thomas Tuegel
d582090a15 suitesparse: add version 4.4.1 2014-12-27 13:47:53 -06:00