about summary refs log tree commit diff
path: root/pkgs/development/libraries/libxsmm/default.nix
blob: b89c57534bec823c1cc7143b472b861fec8ea091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ stdenv, fetchFromGitHub, coreutils, gfortran7, gnused
, python27, utillinux, which, bash
}:

let
  version = "1.13";
in stdenv.mkDerivation {
  pname = "libxsmm";
  inherit version;

  src = fetchFromGitHub {
    owner = "hfp";
    repo = "libxsmm";
    rev = "refs/tags/${version}";
    sha256 = "1c15ccy7vbmvxkfnc7sn26wnf6gr6gxgkmilpgpycm1fhi8ikd6w";
  };

  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;
    homepage = https://github.com/hfp/libxsmm ;
    platforms = platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ chessai ];
    inherit version;
  };
}