public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom Rix <Tom.Rix@amd.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-torchvision] rawhide: Update cuda version patch
Date: Mon, 16 Nov 2026 20:54:32 GMT	[thread overview]
Message-ID: <179486247296.1.1679612014615000104.rpms-python-torchvision-f9098d068039@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-11-16 20:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179486247296.1.1679612014615000104.rpms-python-torchvision-f9098d068039@fedoraproject.org \
    --to=tom.rix@amd.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox