Skip to content

Commit 7cd68c3

Browse files
committed
python3Packages.torch*: use pkgs.autoAddDriverRunpath
1 parent 65c4c21 commit 7cd68c3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkgs/development/python-modules/torch/bin.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ lib, stdenv
22
, buildPythonPackage
3+
, autoAddDriverRunpath
34
, fetchurl
45
, python
56
, pythonAtLeast
@@ -40,7 +41,7 @@ in buildPythonPackage {
4041
nativeBuildInputs = lib.optionals stdenv.isLinux [
4142
addOpenGLRunpath
4243
autoPatchelfHook
43-
cudaPackages.autoAddDriverRunpath
44+
autoAddDriverRunpath
4445
];
4546

4647
buildInputs = lib.optionals stdenv.isLinux (with cudaPackages; [

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python,
22
config, cudaSupport ? config.cudaSupport, cudaPackages,
3+
autoAddDriverRunpath,
34
effectiveMagma ?
45
if cudaSupport then magma-cuda-static
56
else if rocmSupport then magma-hip

0 commit comments

Comments
 (0)