From e34a9fff1f65d82a634d608bf55bda3437392327 Mon Sep 17 00:00:00 2001 From: Christopher Ostrouchov Date: Thu, 13 Sep 2018 15:27:47 -0400 Subject: [PATCH] scalapack: init at 2.0.2 (#46610) Added scalapack with flexibility to choose blas, lapack, and mpi implementation. --- .../science/math/scalapack/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/libraries/science/math/scalapack/default.nix diff --git a/pkgs/development/libraries/science/math/scalapack/default.nix b/pkgs/development/libraries/science/math/scalapack/default.nix new file mode 100644 index 000000000000..83e177c66c18 --- /dev/null +++ b/pkgs/development/libraries/science/math/scalapack/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, fetchurl +, gfortran +, cmake +, blas +, liblapack +, mpi +}: + +stdenv.mkDerivation rec { + name = "scalapack-${version}"; + version = "2.0.2"; + + src = fetchurl { + url = "http://www.netlib.org/scalapack/scalapack-${version}.tgz"; + sha256 = "0p1r61ss1fq0bs8ynnx7xq4wwsdvs32ljvwjnx6yxr8gd6pawx0c"; + }; + + buildInputs = [ cmake mpi liblapack blas gfortran ]; + + meta = with stdenv.lib; { + homepage = http://www.netlib.org/scalapack/; + description = "Library of high-performance linear algebra routines for parallel distributed memory machines"; + license = licenses.bsdOriginal; + platforms = platforms.all; + maintainers = [ maintainers.costrouc ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e29c2db3577c..3dda86d71490 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20810,6 +20810,10 @@ with pkgs; planarity = callPackage ../development/libraries/science/math/planarity { }; + scalapack = callPackage ../development/libraries/science/math/scalapack { + mpi = openmpi; + }; + rankwidth = callPackage ../development/libraries/science/math/rankwidth { }; fenics = callPackage ../development/libraries/science/math/fenics {