public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-torchvision] rawhide: Update cuda version patch
@ 2026-11-16 20:54 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-16 20:54 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-torchvision
Branch : rawhide
Commit : f9098d0680392aabec67bc81fee44af4c96e8af6
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-11-16T12:54:15-08:00
Stats : +21/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-torchvision/c/f9098d0680392aabec67bc81fee44af4c96e8af6?branch=rawhide
Log:
Update cuda version patch
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/0001-A-better-cuda-version.patch b/0001-A-better-cuda-version.patch
index 8058bcf..a1ca8dd 100644
--- a/0001-A-better-cuda-version.patch
+++ b/0001-A-better-cuda-version.patch
@@ -1,11 +1,12 @@
-From 533b86d3964f2a5e0daa1dd9fa49b570ff8b43e8 Mon Sep 17 00:00:00 2001
+From 6526835817883375bae7adbe852a9084f6e34af5 Mon Sep 17 00:00:00 2001
From: Tom Rix <Tom.Rix@amd.com>
-Date: Tue, 23 Jun 2026 06:45:11 -0700
+Date: Mon, 16 Nov 2026 12:26:01 -0800
Subject: [PATCH] A better cuda version
---
torchvision/csrc/vision.cpp | 13 +++++--------
- 1 file changed, 5 insertions(+), 8 deletions(-)
+ torchvision/extension.py | 5 ++++-
+ 2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/torchvision/csrc/vision.cpp b/torchvision/csrc/vision.cpp
index 6cd289d3e8c6..133dd406572f 100644
@@ -40,6 +41,22 @@ index 6cd289d3e8c6..133dd406572f 100644
+#endif
+
} // namespace vision
+diff --git a/torchvision/extension.py b/torchvision/extension.py
+index 9f60a7e1ea0c..42d62a8e4d5c 100644
+--- a/torchvision/extension.py
++++ b/torchvision/extension.py
+@@ -54,7 +54,10 @@ def _check_cuda_version():
+ return -1
+ from torch.version import cuda as torch_version_cuda
+
+- _version = torch.ops.torchvision._cuda_version()
++ try:
++ _version = torch.ops.torchvision._cuda_version()
++ except AttributeError:
++ return -1
+ if _version != -1 and torch_version_cuda is not None:
+ tv_version = str(_version)
+ assert int(tv_version) >= 12000, f"Unexpected CUDA version {_version}, please file a bug report."
--
-2.53.0
+2.56.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-16 20:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-16 20:54 [rpms/python-torchvision] rawhide: Update cuda version patch Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox