2019-10-21 06:26:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, gfortran7, gnused
|
|
|
|
, python27, utillinux, which, bash
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2020-05-25 00:06:12 +01:00
|
|
|
version = "1.15";
|
2019-10-21 06:26:13 +01:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "libxsmm";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hfp";
|
|
|
|
repo = "libxsmm";
|
|
|
|
rev = "refs/tags/${version}";
|
2020-05-25 00:06:12 +01:00
|
|
|
sha256 = "1406qk7k2k4qfqy4psqk55iihsrx91w8kjgsa82jxj50nl9nw5nj";
|
2019-10-21 06:26:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
coreutils
|
|
|
|
gfortran7
|
|
|
|
gnused
|
|
|
|
python27
|
|
|
|
utillinux
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library targeting Intel Architecture for specialized dense and sparse matrix operations, and deep learning primitives";
|
|
|
|
license = licenses.bsd3;
|
2020-05-25 00:06:12 +01:00
|
|
|
homepage = "https://github.com/hfp/libxsmm";
|
2019-10-21 06:26:13 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ chessai ];
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
}
|