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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
Nix
Raw Normal View History

2023-08-16 15:16:06 +00:00
{ cmake
, fetchFromGitHub
, lib
, stdenv
}:
# 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
2023-08-16 15:16:06 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "oneDNN";
2024-03-30 02:43:26 +00:00
version = "3.4.1";
src = fetchFromGitHub {
owner = "oneapi-src";
repo = "oneDNN";
2023-08-16 15:16:06 +00:00
rev = "v${finalAttrs.version}";
2024-03-30 02:43:26 +00:00
hash = "sha256-6iPcytsRWvDn2hg5tkSG6A3cv/aOhmEVd5rS2uOKCPk=";
};
outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ cmake ];
# Tests fail on some Hydra builders, because they do not support SSE4.2.
doCheck = false;
2020-07-24 07:18:41 +00:00
2022-12-20 08:43:26 +00:00
# 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}/" ""
'';
2023-08-16 15:16:06 +00:00
meta = {
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${finalAttrs.version}";
description = "oneAPI Deep Neural Network Library (oneDNN)";
2020-07-20 09:20:00 +00:00
homepage = "https://01.org/oneDNN";
2023-08-16 15:16:06 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bhipple ];
platforms = lib.platforms.all;
};
2023-08-16 15:16:06 +00:00
})