nixpkgs/pkgs/development/libraries/libxsmm/default.nix

51 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, coreutils, gfortran, gnused
2020-11-24 15:29:28 +00:00
, python3, util-linux, which
, enableStatic ? stdenv.hostPlatform.isStatic
2019-10-21 05:26:13 +00:00
}:
2021-07-17 18:37:27 +00:00
stdenv.mkDerivation rec {
2019-10-21 05:26:13 +00:00
pname = "libxsmm";
2021-11-03 12:10:22 +00:00
version = "1.16.3";
2019-10-21 05:26:13 +00:00
src = fetchFromGitHub {
owner = "hfp";
repo = "libxsmm";
rev = version;
2021-11-03 12:10:22 +00:00
sha256 = "sha256-PpMiD/PeQ0pe5hqFG6VFHWpR8y3wnO2z1dJfHHeItlQ=";
2019-10-21 05:26:13 +00:00
};
nativeBuildInputs = [
2019-10-21 05:26:13 +00:00
coreutils
gfortran
2019-10-21 05:26:13 +00:00
gnused
python3
2020-11-24 15:29:28 +00:00
util-linux
2019-10-21 05:26:13 +00:00
which
];
enableParallelBuilding = true;
dontConfigure = true;
makeFlags = let
static = if enableStatic then "1" else "0";
in [
"OMP=1"
"PREFIX=$(out)"
"STATIC=${static}"
];
2019-10-21 05:26:13 +00:00
prePatch = ''
patchShebangs .
'';
meta = with lib; {
2019-10-21 05:26:13 +00:00
description = "Library targeting Intel Architecture for specialized dense and sparse matrix operations, and deep learning primitives";
license = licenses.bsd3;
2020-05-24 23:06:12 +00:00
homepage = "https://github.com/hfp/libxsmm";
2019-10-21 05:26:13 +00:00
platforms = platforms.linux;
maintainers = with lib.maintainers; [ chessai ];
2019-10-21 05:26:13 +00:00
};
}