Skip to content

Conversation

manuelcandales
Copy link
Contributor

Implement the following shims:

  • aoti_torch_create_tensor_from_blob_v2
  • aoti_torch_empty_strided
  • aoti_torch_delete_tensor_object
  • aoti_torch_copy_
  • aoti_torch__reinterpret_tensor

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Oct 10, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit cf93ffd with merge base 6e0c9f6 (image):

NEW FAILURE - The following job has failed:

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

[ghstack-poisoned]
ET_LOG(
Debug,
"aoti_torch_delete_tensor_object: successfull (Metal GPU memory)");
return Error::Ok;
Copy link
Contributor

Choose a reason for hiding this comment

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

returning early causes memory leak, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe explicitly implement metal_free_buffer to properly clean up metal buffers and call the method whenever appropriate

[ghstack-poisoned]
[ghstack-poisoned]
@manuelcandales manuelcandales added the release notes: none Do not include this in the release notes label Oct 13, 2025
[ghstack-poisoned]
[ghstack-poisoned]
manuelcandales added a commit to manuelcandales/executorch-1 that referenced this pull request Oct 14, 2025
Implement the following shims:
- aoti_torch_create_tensor_from_blob_v2
- aoti_torch_empty_strided
- aoti_torch_delete_tensor_object
- aoti_torch_copy_
- aoti_torch__reinterpret_tensor

ghstack-source-id: e272dc3
ghstack-comment-id: 3392300212
Pull-Request: pytorch#15021
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
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: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants