oneDNN_2: init at 2.7.1

This commit is contained in:
misuzu
2023-06-14 19:09:40 +03:00
parent 1f5a30f310
commit 2dfe86a148
2 changed files with 43 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
{ stdenv, lib, fetchFromGitHub, cmake }:
# This was originally called mkl-dnn, then it was renamed to dnnl, and it has
# just recently been renamed again to oneDNN. See here for details:
# https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn
stdenv.mkDerivation rec {
pname = "oneDNN";
version = "2.7.1";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "oneDNN";
rev = "v${version}";
sha256 = "sha256-HBCuSZkApd/6UkAxz/KDFb/gyX2SI1S2GwgXAXSTU/c=";
};
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ];
# Tests fail on some Hydra builders, because they do not support SSE4.2.
doCheck = false;
# Fixup bad cmake paths
postInstall = ''
substituteInPlace $out/lib/cmake/dnnl/dnnl-config.cmake \
--replace "\''${PACKAGE_PREFIX_DIR}/" ""
substituteInPlace $out/lib/cmake/dnnl/dnnl-targets.cmake \
--replace "\''${_IMPORT_PREFIX}/" ""
'';
meta = with lib; {
description = "oneAPI Deep Neural Network Library (oneDNN)";
homepage = "https://01.org/oneDNN";
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ alexarice bhipple ];
};
}
+2
View File
@@ -23416,6 +23416,8 @@ with pkgs;
oneDNN = callPackage ../development/libraries/oneDNN { };
oneDNN_2 = callPackage ../development/libraries/oneDNN/2.nix { };
onedrive = callPackage ../applications/networking/sync/onedrive { };
oneko = callPackage ../applications/misc/oneko { };