Skip to content

Conversation

GregoryComer
Copy link
Member

Summary

#11654 was reverted in #11928 due to a Meta-internal build breakage. This PR re-lands the changes along with a fix for the variable name shadowing. I will update OSS CI to run with -Wshadow enabled as a follow-up to catch this in GitHub in the future.

@pytorch-bot pytorch-bot bot added the ci-no-td label Jun 24, 2025
Copy link

pytorch-bot bot commented Jun 24, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/11935

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

⏳ No Failures, 1 Pending

As of commit 5815291 with merge base 91c9ffa (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 24, 2025
keyprocedure and others added 2 commits June 24, 2025 14:21
### Summary
- Adds `load_into()` to support memory mapped loading directly into the
caller's buffer.
- Enables copying a specific byte range from the file without creating
an internal buffer.
- Resuses input validation from `load()`.

Fixes pytorch#11561

### Test plan
- Added unit tests to `MmapDataLoaderTest` for `load_into()` to validate
copying for both aligned and offset data.
- All Mmap Data Loader tests pass via: 
```
./build-ninja/extension/data_loader/test/extension_data_loader_test --gtest_filter='MmapDataLoaderTest.*'
```
- Full set of Data Loader tests pass via:
```
./build-ninja/extension/data_loader/test/extension_data_loader_test
```
@GregoryComer GregoryComer force-pushed the reland-mmap-loader-changes branch from 1aac118 to 5815291 Compare June 24, 2025 21:21
@GregoryComer GregoryComer added the release notes: none Do not include this in the release notes label Jun 24, 2025
@GregoryComer GregoryComer marked this pull request as ready for review June 24, 2025 21:33
@GregoryComer GregoryComer merged commit 23e8ff5 into pytorch:main Jun 24, 2025
171 of 174 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-no-td CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants