Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79005 - [python-torchvision-cuda] cuda version mismatch

Attached to Project: Arch Linux
Opened by Chao Li (chao2li) - Friday, 07 July 2023, 05:13 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 07 July 2023, 21:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Konstantin Gizdov (kgizdov)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
torchvision cuda version mismatch with torch's, leading to a RuntimeError

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
install python-torch-vision-cuda, try `import torchvision` in ipython.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 07 July 2023, 21:35 GMT
Reason for closing:  Fixed
Comment by Toolybird (Toolybird) - Friday, 07 July 2023, 06:30 GMT
> package version(s)

Missing

> * config and/or log files etc.

Please at least include the *exact* error message.
Comment by Toolybird (Toolybird) - Friday, 07 July 2023, 06:33 GMT
> error message

RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions. PyTorch has CUDA Version=12.2 and torchvision has CUDA Version=12.1. Please reinstall the torchvision that matches your PyTorch install.
Comment by Chao Li (chao2li) - Friday, 07 July 2023, 07:04 GMT
Thanks for your time exploring this. Sorry I missed some information.
The package version is 0.15.1-2.
The log is attached.
   log (2.6 KiB)
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 07 July 2023, 15:11 GMT
Please check 0.15.2.
Comment by Chao Li (chao2li) - Friday, 07 July 2023, 16:17 GMT
0.15.2 works fine now. That's quick! Thanks for your notification.

Loading...