Skip to content

Migrate relocatable_runner to use MethodMeta #316

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

Closed
wants to merge 2 commits into from
Closed

Migrate relocatable_runner to use MethodMeta #316

wants to merge 2 commits into from

Conversation

dbort
Copy link
Contributor

@dbort dbort commented Sep 13, 2023

Summary: Make this use the new APIs. Note that MethodMeta::num_non_const_buffers is zero-based, so we can avoid the hacks that skip index zero.

Differential Revision: D48762565

@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 Sep 13, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

3 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

dbort and others added 2 commits September 13, 2023 10:31
Summary:
First step in hiding the off-by-one non-const buffer indices from users. Since fewer users use `MethodMeta::num_non_const_buffers` today (relative to the version on Program), update the behavior here, along with all of its users.

After this, we can migrate the users of `Program::get_non_const_buffer_size` to this new API, fixing the off-by-one as we go.

Differential Revision: D48762563

fbshipit-source-id: d01dc0f321813e047ecb1cc791d9ffa8e69d99fb
Summary:
Pull Request resolved: #316

Make this use the new APIs. Note that MethodMeta::num_non_const_buffers is zero-based, so we can avoid the hacks that skip index zero.

Reviewed By: JacobSzwejbka

Differential Revision: D48762565

fbshipit-source-id: 1d9eb4071e7f1f2196549b2f656973f403729129
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48762565

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f6f3f00.

Gasoonjia pushed a commit that referenced this pull request Jul 30, 2024
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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants