Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reapply "Fix memory leak in decode_webp (#8712)" (#8723) #8724

Merged
merged 22 commits into from
Dec 2, 2024

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Nov 12, 2024

This reverts commit 7d077f1. which itself reverted #8710. So we're putting #8710 back

Copy link

pytorch-bot bot commented Nov 12, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8724

Note: Links to docs will display an error until the docs builds have been completed.

❌ 7 New Failures, 9 Unrelated Failures

As of commit 1e3822c with merge base cd839f1 (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@NicolasHug
Copy link
Member Author

NicolasHug commented Nov 27, 2024

EDIT: Below is outdated. ROCm now works. No idea why it decided not to before. UGH.


Status as of 21ce0e7

  • Build Windows Wheels / pytorch/vision / wheel-py3_9-xpu (pull_request) is failing with the same issue as on main
  • Tests / unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job - same
  • Build Windows Wheels / pytorch/vision / wheel-py3_9-cuda11_8 (pull_request) and Build Windows Wheels / pytorch/vision / wheel-py3_9-cuda12_4 (pull_request) have been queued for days (same on main)
  • rocm wheel jobs are failing during compilation with:
/__w/vision/vision/pytorch/vision/torchvision/csrc/io/image/cpu/decode_webp.cpp:50:42: error: ‘WebPFree’ was not declared in this scope
   50 |   auto deleter = [decoded_data](void*) { WebPFree(decoded_data); };
      |                                          ^~~~~~~~

Looking at the changelog of libwebp, WebPFree has been available at least before version 0.2 released in 2012 https://github.com/webmproject/libwebp/blob/4238bc0adbacf6d5021a6578e66332786ae6a5b6/ChangeLog#L512

So, for whatever reason, the libwebp that gets installed on rocm isn't recent enough, or just wrong. Either way, we can't block landing this because of a single platform, so we'll just not build with webp support on rocm. 🤷‍♂️

@NicolasHug
Copy link
Member Author

Wheel jobs are green. Relevant unit-tests are passing. Existing failures are already visible on main. Landing.

@NicolasHug NicolasHug merged commit eedca60 into pytorch:main Dec 2, 2024
44 of 60 checks passed
Copy link

github-actions bot commented Dec 2, 2024

Hey @NicolasHug!

You merged this PR, but no labels were added.
The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants