Skip to content

Commit

Permalink
[nix] bump buddy-mlir
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Aug 14, 2024
1 parent 15e3a2e commit 886638a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nix/pkgs/buddy-mlir.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ let
src = fetchFromGitHub {
owner = "buddy-compiler";
repo = "buddy-mlir";
rev = "d7d90a488ac0d6fc1e700e932f842c7b2bcad816";
hash = "sha256-MhykCa6Z7Z8PpAlNh+vMuWYEOZZDyWhtMzMnFlNbGIk=";
rev = "ee64045e8966b79538603c4f2dd5866d22e0afe7";
hash = "sha256-f0rbD1CHWz4flEK7igZszDWtAr37UVGX026cI0EHB7w=";
};

patches = [
(fetchpatch {
url = "https://github.com/buddy-compiler/buddy-mlir/pull/367.diff";
hash = "sha256-1ThvhxM12dxWoQf8wbc6Hv09UuquJg00V+f9U4ExEN4=";
})
];

nativeBuildInputs = [ cmake ninja bintools ];
buildInputs = [
buddy-llvm
Expand Down
6 changes: 6 additions & 0 deletions tests/pytorch/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ let
runHook postBuild
'';

postInstall = ''
mkdir $out/share
cp -v *.mlir $out/share
cp -v *.ll $out/share
'';

meta.description = "testcase '${caseName}', written in MLIR";
};
in
Expand Down

0 comments on commit 886638a

Please sign in to comment.