Skip to content

Commit

Permalink
torch: Only remove FindCUDAToolkit.cmake if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Jul 24, 2024
1 parent 177ea1e commit f08a1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/torch/fix-cmake-cuda-toolkit.patch
mkDerivation.postInstall = ''
rm $out/${config.deps.python.sitePackages}/torch/share/cmake/Caffe2/FindCUDAToolkit.cmake
rm -f $out/${config.deps.python.sitePackages}/torch/share/cmake/Caffe2/FindCUDAToolkit.cmake
'';
# seems to be a bug in the torch-cu117 package
env.autoPatchelfIgnoreMissingDeps = [ "libnvToolsExt.so.1" ];
Expand Down

0 comments on commit f08a1e3

Please sign in to comment.