Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchurl,
5 blas,
6 lapack,
7 mpi,
8}:
9
10assert (!blas.isILP64) && (!lapack.isILP64);
11
12stdenv.mkDerivation rec {
13 pname = "hpl";
14 version = "2.3";
15
16 src = fetchurl {
17 url = "http://www.netlib.org/benchmark/hpl/hpl-${version}.tar.gz";
18 sha256 = "0c18c7fzlqxifz1bf3izil0bczv3a7nsv0dn6winy3ik49yw3i9j";
19 };
20
21 enableParallelBuilding = true;
22
23 postInstall = ''
24 # only contains the static lib
25 rm -r $out/lib
26
27 install -D testing/ptest/HPL.dat $out/share/hpl/HPL.dat
28 '';
29
30 buildInputs = [
31 blas
32 lapack
33 mpi
34 ];
35
36 meta = with lib; {
37 description = "Portable Implementation of the Linpack Benchmark for Distributed-Memory Computers";
38 homepage = "http://www.netlib.org/benchmark/hpl/";
39 platforms = platforms.unix;
40 license = licenses.bsdOriginal;
41 maintainers = [ maintainers.markuskowa ];
42 mainProgram = "xhpl";
43 };
44}