pythonPackages.pytorch: remove ? null from inputs
This commit is contained in:
parent
3ceb5ab5ed
commit
d43e54487b
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python,
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python,
|
||||||
cudaSupport ? false, cudatoolkit ? null, cudnn ? null, nccl ? null, magma ? null,
|
cudaSupport ? false, cudatoolkit, cudnn, nccl, magma,
|
||||||
mklDnnSupport ? true, useSystemNccl ? true,
|
mklDnnSupport ? true, useSystemNccl ? true,
|
||||||
MPISupport ? false, mpi,
|
MPISupport ? false, mpi,
|
||||||
buildDocs ? false,
|
buildDocs ? false,
|
||||||
@ -30,8 +30,6 @@
|
|||||||
isPy3k, pythonOlder }:
|
isPy3k, pythonOlder }:
|
||||||
|
|
||||||
# assert that everything needed for cuda is present and that the correct cuda versions are used
|
# assert that everything needed for cuda is present and that the correct cuda versions are used
|
||||||
assert !cudaSupport || cudatoolkit != null;
|
|
||||||
assert cudnn == null || cudatoolkit != null;
|
|
||||||
assert !cudaSupport || (let majorIs = lib.versions.major cudatoolkit.version;
|
assert !cudaSupport || (let majorIs = lib.versions.major cudatoolkit.version;
|
||||||
in majorIs == "9" || majorIs == "10" || majorIs == "11");
|
in majorIs == "9" || majorIs == "10" || majorIs == "11");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user