Merge pull request #232480 from wegank/cudatoolkit-eval-2

python310Packages.torchWithCuda: add platform check
This commit is contained in:
Weijia Wang 2023-05-17 22:56:07 +03:00 committed by GitHub
commit ee8921a137
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ let
inherit (cudaPackages) cudatoolkit cudaFlags cudnn nccl;
in
assert cudaSupport -> stdenv.isLinux;
assert cudaSupport -> (cudaPackages.cudaMajorVersion == "11");
# confirm that cudatoolkits are sync'd across dependencies