Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{
|
|
cmake,
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
llvmPackages,
|
|
}:
|
|
|
|
# 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 (finalAttrs: {
|
|
pname = "oneDNN";
|
|
version = "3.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oneapi-src";
|
|
repo = "oneDNN";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-DbLW22LgG8wrBNMsxoUGlacHLcfIBwqyiv+HOmFDtxc=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ];
|
|
|
|
# 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 = {
|
|
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${finalAttrs.version}";
|
|
description = "oneAPI Deep Neural Network Library (oneDNN)";
|
|
homepage = "https://01.org/oneDNN";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bhipple ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|