superlu: init at 5.2.1
This commit is contained in:
parent
c0b5213aad
commit
f3dc4d9ec3
@ -0,0 +1,7 @@
|
||||
--- a/TESTING/MATGEN/CMakeLists.txt
|
||||
+++ b/TESTING/MATGEN/CMakeLists.txt
|
||||
@@ -97,3 +97,4 @@ if(enable_complex16)
|
||||
endif()
|
||||
|
||||
add_library(matgen ${sources})
|
||||
+target_link_libraries(matgen superlu)
|
36
pkgs/development/libraries/science/math/superlu/default.nix
Normal file
36
pkgs/development/libraries/science/math/superlu/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchurl, cmake,
|
||||
gfortran, openblasCompat}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "5.2.1";
|
||||
name = "superlu-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://crd-legacy.lbl.gov/~xiaoye/SuperLU/superlu_${version}.tar.gz";
|
||||
sha256 = "0qzlb7cd608q62kyppd0a8c65l03vrwqql6gsm465rky23b6dyr8";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake gfortran ];
|
||||
|
||||
propagatedBuildInputs = [ openblasCompat ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=true"
|
||||
"-DUSE_XSDK_DEFAULTS=true"
|
||||
];
|
||||
|
||||
patches = [
|
||||
./find-openblas-library.patch
|
||||
./add-superlu-lib-as-dependency-for-the-unit-tests.patch
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
checkTarget = "test";
|
||||
|
||||
meta = {
|
||||
homepage = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/;
|
||||
license = http://crd-legacy.lbl.gov/~xiaoye/SuperLU/License.txt;
|
||||
description = "A library for the solution of large, sparse, nonsymmetric systems of linear equations";
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -75,6 +75,8 @@ set(CMAKE_C_FLAGS_RELEASE "-O3" CACHE STRING "")
|
||||
######################################################################
|
||||
#
|
||||
#--------------------- BLAS ---------------------
|
||||
+find_package(OpenBLAS)
|
||||
+set(TPL_BLAS_LIBRARIES ${OpenBLAS_LIBRARIES})
|
||||
if(NOT enable_blaslib)
|
||||
if (TPL_BLAS_LIBRARIES)
|
||||
set(BLAS_FOUND TRUE)
|
@ -16382,6 +16382,8 @@ in
|
||||
suitesparse_4_4 = callPackage ../development/libraries/science/math/suitesparse {};
|
||||
suitesparse = suitesparse_4_4;
|
||||
|
||||
superlu = callPackage ../development/libraries/science/math/superlu {};
|
||||
|
||||
ipopt = callPackage ../development/libraries/science/math/ipopt { openblas = openblasCompat; };
|
||||
|
||||
gmsh = callPackage ../applications/science/math/gmsh { };
|
||||
|
Loading…
x
Reference in New Issue
Block a user