2020-05-15 21:57:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# This was originally called mkl-dnn, then it was renamed to dnnl, and it has
|
2020-05-15 21:57:56 +00:00
|
|
|
# just recently been renamed again to oneDNN. See here for details:
|
2020-04-24 23:36:52 +00:00
|
|
|
# https://github.com/oneapi-src/oneDNN#oneapi-deep-neural-network-library-onednn
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "oneDNN";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oneapi-src";
|
|
|
|
repo = "oneDNN";
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-b0cBExzS4rsdSmZ8uPtM8+Djy2ncvuGVEwLsf2h0Sro=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# Tests fail on some Hydra builders, because they do not support SSE4.2.
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "oneAPI Deep Neural Network Library (oneDNN)";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://01.org/oneDNN";
|
2020-04-24 23:36:52 +00:00
|
|
|
changelog = "https://github.com/oneapi-src/oneDNN/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ alexarice bhipple ];
|
|
|
|
};
|
|
|
|
}
|