Skip to content

Commit 8fa343c

Browse files
trofiSomeoneSerge
authored andcommitted
python3Packages.torch: fix cudnn attribute access
Without the change the eval fails as: $ nix build --no-link -f. opensplatWithCuda --argstr system aarch64-linux error: error: attribute 'lib' missing at /home/slyfox/dev/git/nixpkgs-master/pkgs/development/python-modules/torch/default.nix:357:30: 356| export CUDNN_INCLUDE_DIR=${lib.getLib cudnn}/include 357| export CUDNN_LIB_DIR=${cudnn.lib}/lib | ^ 358| ''
1 parent 2ba0dca commit 8fa343c

File tree

1 file changed

+1
-1
lines changed
  • pkgs/development/python-modules/torch/source

1 file changed

+1
-1
lines changed

pkgs/development/python-modules/torch/source/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ buildPythonPackage rec {
364364
''
365365
+ lib.optionalString (cudaSupport && cudaPackages ? cudnn) ''
366366
export CUDNN_INCLUDE_DIR=${lib.getLib cudnn}/include
367-
export CUDNN_LIB_DIR=${cudnn.lib}/lib
367+
export CUDNN_LIB_DIR=${lib.getLib cudnn}/lib
368368
''
369369
+ lib.optionalString rocmSupport ''
370370
export ROCM_PATH=${rocmtoolkit_joined}

0 commit comments

Comments
 (0)