about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-05-23 16:32:39 -0500
committerGitHub <noreply@github.com>2020-05-23 16:32:39 -0500
commit64f8baf1087016905e39ece1cbfe1ec61cf337e5 (patch)
tree5cfff94cb938899c1401391a2b25d9e4bdde76eb
parentc74a9cd3e206c56598c4392b771945b1db9856d7 (diff)
parent6333819c60f3c13c9467efd1410835639d6a8228 (diff)
downloadnixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar.gz
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar.bz2
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar.lz
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar.xz
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.tar.zst
nixlib-64f8baf1087016905e39ece1cbfe1ec61cf337e5.zip
Merge pull request #71498 from chessai/libxsmm-add
libxsmm: init at 1.13
-rw-r--r--pkgs/development/libraries/libxsmm/default.nix41
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libxsmm/default.nix b/pkgs/development/libraries/libxsmm/default.nix
new file mode 100644
index 000000000000..b89c57534bec
--- /dev/null
+++ b/pkgs/development/libraries/libxsmm/default.nix
@@ -0,0 +1,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;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 12f8cc6500af..c21090f1ba4d 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -13594,6 +13594,8 @@ in
     python = if stdenv.isDarwin then python2 else python3;
   };
 
+  libxsmm = callPackage ../development/libraries/libxsmm { };
+
   libixp_hg = callPackage ../development/libraries/libixp-hg { };
 
   libyaml = callPackage ../development/libraries/libyaml { };