question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows torchvision-0.11.1 CUDA-10.2 wheel packages are not bundled with nvjpeg dll

See original GitHub issue

🐛 Describe the bug

Steps to reproduce:

  1. Download TorchVision 0.11.1 windows wheel from https://download.pytorch.org/whl/cu102/torchvision/
  2. Unpack the binary
  3. Run dumpbin /dependents image.pyd to make sure it depends on nvjpeg64_10.dll:
C:\Users\circleci\Downloads\torchvision>dumpbin /dependents image.pyd
Microsoft (R) COFF/PE Dumper Version 14.00.24245.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file image.pyd

File Type: DLL

  Image has the following dependencies:

    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-filesystem-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    libpng16.dll
    nvjpeg64_10.dll
    c10.dll
    torch_cpu.dll
    cudart64_102.dll
    c10_cuda.dll
    MSVCP140.dll
    KERNEL32.dll
    VCRUNTIME140_1.dll
    VCRUNTIME140.dll
    api-ms-win-crt-string-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll

  Summary

        2000 .data
        3000 .pdata
       2E000 .rdata
        1000 .reloc
        1000 .rsrc
       3C000 .text

  1. Noticesthat nvjpeg64_10.dll is missing from the archive

This causes torchvision.io.read_image fail on Windows

Versions

0.11.1 win+cu102

cc @peterjc123 @nbcsm @guyang3532 @maxluk @gunandrose4u @mszhanyi

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
puyebucommented, Dec 18, 2021

I had the same problem and this is the only page I found,

Python/Pytorch does not search the path Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin for some reason, despite the path being specified in the environment, therefore causing dll error. I couldn’t find a proper solution and instead made hardlinks to the missing dlls in the Python\Lib\site-packages\torch\lib folder using mklink /H cmd command.

I am sure there must be a better way but I couldn’t figure it out.

1reaction
malfetcommented, Dec 15, 2021

nvjpeg64_10.dll can be downloaded from https://developer.nvidia.com/cuda-10.2-download-archive

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cuda not compatible with PyTorch installation error while ...
I implemented conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c ... Collecting package metadata (current_repodata.json): done
Read more >
GPU Pytorch with CUDA10.2 and GPU Pytorch with CUDA11.1
I have been trying to test the installation of the GPU-enabled Pytorch on Windows using Anaconda , and had the following observations:.
Read more >
Windows FAQ — PyTorch 1.13 documentation
There are two supported components for Windows PyTorch: MKL and MAGMA. ... As for the wheels package, since we didn't pack some libraries...
Read more >
PyTorch for Jetson - NVIDIA Developer Forums
Below are pre-built PyTorch pip wheel installers for Python on Jetson Nano, Jetson TX1/TX2, Jetson Xavier NX/AGX, and Jetson AGX Orin with ...
Read more >
Python 科学技術関連のパッケージ一覧 | トライフィールズ
A fake package to warn the user they are not installing the correct ... GPU-accelerated Python package for ultrasound imaging. ... pandas-alchemy(0.0.2)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found