Skip to content

Commit

Permalink
nix: add missing install hooks to cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Sep 15, 2023
1 parent 7fa5ba0 commit 7aa42f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@

buildFlags = [ "LLAMA_CUBLAS=1" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
# TODO(Green-Sky): add install target to Makefile, or wait for cmake support
Expand All @@ -91,6 +93,8 @@
mv quantize $out/bin/
mv llama-bench $out/bin/
mv train-text-from-scratch $out/bin/
runHook postInstall
'';
};
packages.rocm = pkgs.stdenv.mkDerivation {
Expand Down

0 comments on commit 7aa42f7

Please sign in to comment.