2021-01-22 11:25:31 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-10-26 03:37:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tvm";
|
2022-07-31 04:10:57 +00:00
|
|
|
version = "0.9.0";
|
2020-10-26 03:37:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "apache";
|
|
|
|
repo = "incubator-tvm";
|
|
|
|
rev = "v${version}";
|
|
|
|
fetchSubmodules = true;
|
2022-07-31 04:10:57 +00:00
|
|
|
sha256 = "sha256-lzLrd4vNK1c7BwWS0H5x1uDdZ3moUl+zWHb8G6gs8hw=";
|
2020-10-26 03:37:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# TVM CMake build uses some sources in the project's ./src/target/opt/
|
|
|
|
# directory which errneously gets mangled by the eager `fixCmakeFiles`
|
|
|
|
# function in Nix's CMake setup-hook.sh to ./src/target/var/empty/,
|
|
|
|
# which then breaks the build. Toggling this flag instructs Nix to
|
|
|
|
# not mangle the legitimate use of the opt/ folder.
|
|
|
|
dontFixCmake = true;
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 03:37:33 +00:00
|
|
|
homepage = "https://tvm.apache.org/";
|
|
|
|
description = "An End to End Deep Learning Compiler Stack for CPUs, GPUs and accelerators";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ adelbertc ];
|
|
|
|
};
|
|
|
|
}
|