depot/third_party/nixpkgs/pkgs/development/compilers/tvm/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

30 lines
980 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "tvm";
version = "0.16.0";
src = fetchFromGitHub {
owner = "apache";
repo = "incubator-tvm";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-g8Z5MRM3KIgCjGxtU9JLEsFUjFxPKmc6OwY17C59cxg=";
};
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;
meta = with lib; {
homepage = "https://tvm.apache.org/";
description = "End to End Deep Learning Compiler Stack for CPUs, GPUs and accelerators";
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ adelbertc ];
};
}