Merge pull request #298609 from mschwaig/fix-torch-with-rocm

python3Packages.torchWithRocm: fix build
This commit is contained in:
Ulrik Strid
2024-03-30 13:34:59 +01:00
committed by GitHub
@@ -52,7 +52,7 @@
# ROCm dependencies
rocmSupport ? config.rocmSupport,
rocmPackages,
rocmPackages_5,
gpuTargets ? [ ]
}:
@@ -60,6 +60,8 @@ let
inherit (lib) attrsets lists strings trivial;
inherit (cudaPackages) cudaFlags cudnn nccl;
rocmPackages = rocmPackages_5;
setBool = v: if v then "1" else "0";
# https://github.com/pytorch/pytorch/blob/v2.0.1/torch/utils/cpp_extension.py#L1744