mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
python314Packages.torchcodec: use cudaPackages from torch
This commit is contained in:
@@ -20,10 +20,12 @@
|
||||
torchvision,
|
||||
|
||||
cudaSupport ? torch.cudaSupport,
|
||||
cudaPackages,
|
||||
rocmSupport ? torch.rocmSupport,
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (torch) cudaCapabilities cudaPackages;
|
||||
in
|
||||
buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
pname = "torchcodec";
|
||||
version = "0.14.0";
|
||||
@@ -100,7 +102,7 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: {
|
||||
ENABLE_CUDA = cudaSupport;
|
||||
}
|
||||
// lib.optionalAttrs cudaSupport {
|
||||
TORCH_CUDA_ARCH_LIST = "${lib.concatStringsSep ";" torch.cudaCapabilities}";
|
||||
TORCH_CUDA_ARCH_LIST = "${lib.concatStringsSep ";" cudaCapabilities}";
|
||||
}
|
||||
// lib.optionalAttrs rocmSupport {
|
||||
ROCM_PATH = torch.rocmtoolkit_joined;
|
||||
|
||||
Reference in New Issue
Block a user