python3Packages.torchaudio: fix build with CUDA 12.5+
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
symlinkJoin,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
||||
# nativeBuildInputs
|
||||
cmake,
|
||||
@@ -86,7 +87,17 @@ buildPythonPackage rec {
|
||||
hash = "sha256-BRn4EZ7bIujGA6b/tdMu9yDqJNEaf/f1Kj45aLHC/JI=";
|
||||
};
|
||||
|
||||
patches = [ ./0001-setup.py-propagate-cmakeFlags.patch ];
|
||||
patches = [
|
||||
./0001-setup.py-propagate-cmakeFlags.patch
|
||||
|
||||
# fix missing FLT_MAX symbol (dropped in CUDA 12.5)
|
||||
# https://github.com/pytorch/audio/pull/3811
|
||||
# drop after update to torchaudio 2.6.0
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pytorch/audio/commit/7797f83e1d66ff78872763e1da3a5fb2f0534c40.patch";
|
||||
hash = "sha256-mHFCWuHhveyUP9cN0Kn6GXZsC3njTcM2ONVaB/qK1zU=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch =
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user