Merge pull request #273594 from ConnorBaker/fix/pytorch-fix-gate-nccl-with-cudaSupport
python3Packages.torch: gate NCCL with cudaSupport
This commit is contained in:
commit
3c1873efa9
@ -273,7 +273,7 @@ in buildPythonPackage rec {
|
||||
PYTORCH_BUILD_VERSION = version;
|
||||
PYTORCH_BUILD_NUMBER = 0;
|
||||
|
||||
USE_NCCL = setBool (cudaPackages ? nccl);
|
||||
USE_NCCL = setBool (cudaSupport && cudaPackages ? nccl);
|
||||
USE_SYSTEM_NCCL = setBool useSystemNccl; # don't build pytorch's third_party NCCL
|
||||
USE_STATIC_NCCL = setBool useSystemNccl;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user