Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a054d7450768
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bf8c0310749d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 26, 2018

  1. scalapack: switch to openblas + add test

    * change from blas,lapack to openblas
    * add check phase
    * enable parallel building
    * fix license
    markuskowa committed Oct 26, 2018
    Copy the full SHA
    41a579a View commit details

Commits on Nov 5, 2018

  1. Merge pull request #49199 from markuskowa/fet-scalapack

    scalapack: switch to openblas and add test
    markuskowa authored Nov 5, 2018
    Copy the full SHA
    bf8c031 View commit details
Showing with 32 additions and 10 deletions.
  1. +32 −10 pkgs/development/libraries/science/math/scalapack/default.nix
42 changes: 32 additions & 10 deletions pkgs/development/libraries/science/math/scalapack/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{ stdenv
, fetchurl
, gfortran
, cmake
, blas
, liblapack
, mpi
}:
{ stdenv, fetchurl, cmake, openssh
, gfortran, mpi, openblasCompat
} :


stdenv.mkDerivation rec {
name = "scalapack-${version}";
@@ -16,12 +12,38 @@ stdenv.mkDerivation rec {
sha256 = "0p1r61ss1fq0bs8ynnx7xq4wwsdvs32ljvwjnx6yxr8gd6pawx0c";
};

buildInputs = [ cmake mpi liblapack blas gfortran ];
nativeBuildInputs = [ cmake openssh ];
buildInputs = [ mpi gfortran openblasCompat ];

enableParallelBuilding = true;

doCheck = true;

preConfigure = ''
cmakeFlagsArray+=(
-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
-DLAPACK_LIBRARIES="-lopenblas"
-DBLAS_LIBRARIES="-lopenblas"
)
'';

checkPhase = ''
# make sure the test starts even if we have less than 4 cores
export OMPI_MCA_rmaps_base_oversubscribe=1
# Run single threaded
export OMP_NUM_THREADS=1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib
export CTEST_OUTPUT_ON_FAILURE=1
make test
'';

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;
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.costrouc ];
};