Skip to content

Commit

Permalink
Merge pull request #101728 from adelbertc/init-tvm
Browse files Browse the repository at this point in the history
tvm: init at 0.7.0
  • Loading branch information
SuperSandro2000 authored Dec 8, 2020
2 parents 7c20dfa + 2eafe0c commit 407469c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pkgs/development/compilers/tvm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
pname = "tvm";
version = "0.7.0";

src = fetchFromGitHub {
owner = "apache";
repo = "incubator-tvm";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "0qflpd3lw0jslyk5lqpv2v42lkqs8mkvnn6i3fdms32iskdfk6p5";
};

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 stdenv.lib; {
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7862,6 +7862,8 @@ in

turses = callPackage ../applications/networking/instant-messengers/turses { };

tvm = callPackage ../development/compilers/tvm { };

oysttyer = callPackage ../applications/networking/instant-messengers/oysttyer { };

twilight = callPackage ../tools/graphics/twilight {
Expand Down

0 comments on commit 407469c

Please sign in to comment.