python3Packages.pytorch: fix build

This commit is contained in:
Jonathan Ringer 2019-09-28 18:49:37 -07:00 committed by Frederik Rietdijk
parent b3b123a104
commit 02648a6cc1

View File

@ -44,6 +44,7 @@ in buildPythonPackage rec {
})
];
dontUseCmakeConfigure = true;
preConfigure = lib.optionalString cudaSupport ''
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
'' + lib.optionalString (cudaSupport && cudnn != null) ''