python3Packages.torch*: use pkgs.autoAddDriverRunpath

This commit is contained in:
Jonathan Ringer 2024-03-30 11:34:25 -07:00 committed by Jonathan Ringer
parent 65c4c21a2b
commit 7cd68c3dc8
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{ lib, stdenv
, buildPythonPackage
, autoAddDriverRunpath
, fetchurl
, python
, pythonAtLeast
@ -40,7 +41,7 @@ in buildPythonPackage {
nativeBuildInputs = lib.optionals stdenv.isLinux [
addOpenGLRunpath
autoPatchelfHook
cudaPackages.autoAddDriverRunpath
autoAddDriverRunpath
];
buildInputs = lib.optionals stdenv.isLinux (with cudaPackages; [

View file

@ -1,5 +1,6 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, buildPythonPackage, python,
config, cudaSupport ? config.cudaSupport, cudaPackages,
autoAddDriverRunpath,
effectiveMagma ?
if cudaSupport then magma-cuda-static
else if rocmSupport then magma-hip