Skip to content

Conversation

@shewu-quic
Copy link
Collaborator

@shewu-quic shewu-quic commented Nov 27, 2025

Summary:

  • Remove PreRegisterMem, as it is legacy code used for registering custom memory before execution.

cc: @haowhsu-quic

…buffer

Summary:
- Remove PreRegisterMem, as it is legacy code used for registering custom memory before execution.
@shewu-quic shewu-quic requested a review from cccclai as a code owner November 27, 2025 07:00
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 27, 2025

🔗 Helpful Links

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

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

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

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

@meta-cla meta-cla 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 Nov 27, 2025
@shewu-quic
Copy link
Collaborator Author

@pytorchbot label "release notes: qualcomm"

@pytorch-bot pytorch-bot bot added the release notes: qualcomm Changes to the Qualcomm backend delegate label Nov 27, 2025
@shewu-quic
Copy link
Collaborator Author

Hi @cccclai,

This PR addresses the error that occurs when running llama_runner multiple times within a single process.
Could you please take a look?

Thanks

std::unordered_set<CustomMemTensorInfo> custom_mem_tensor_info_set_;
// After the custom memory is freed, we will ensure that no tensor addresses
// remain linked to this custom memory.
std::unordered_map<void*, std::unordered_set<void*>>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to describe how custom memory work (like the life cycle and ownership etc) in this stack? I received the question multiple times.

@cccclai
Copy link
Contributor

cccclai commented Dec 1, 2025

Also our CI isn't working last week. Can you rebase to see if it's recovered?

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: qualcomm Changes to the Qualcomm backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants