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

[caffe2][be] migrate gloabl static initializer #128784

Closed
wants to merge 1 commit into from

Conversation

klein-meta
Copy link
Contributor

Summary:
Caffe2 lib has 200+ global static initializer usage, which are papar-cut reference to startup perf. Detail in this post https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154.

This Diff migrate StorageImpl.cpp

Addtional Context: https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154

Test Plan: CI

Differential Revision: D58639283

Copy link

pytorch-bot bot commented Jun 16, 2024

This appears to be a diff that was exported from phabricator, but the PR author does not have sufficient permissions to run CI. @klein-meta, please do step 2 of internal wiki to get write access so you do not need to get CI approvals in the future. If you think this is a mistake, please contact the Pytorch Dev Infra team.

Copy link

pytorch-bot bot commented Jun 16, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 35aa619 with merge base c4dd752 (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
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

klein-meta added a commit to klein-meta/pytorch that referenced this pull request Jun 17, 2024
Summary:
Pull Request resolved: pytorch#128784

Caffe2 lib has 200+ global static initializer usage, which are papar-cut reference to startup perf. Detail in this post https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154.

This Diff migrate StorageImpl.cpp

Addtional Context: https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154

Test Plan: CI

Differential Revision: D58639283
@aaronenyeshi aaronenyeshi added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 19, 2024
Copy link
Member

@aaronenyeshi aaronenyeshi left a comment

Choose a reason for hiding this comment

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

Please fix lint before landing:

2024-06-19T15:56:10.5610812Z   Warning (CLANGFORMAT) format
2024-06-19T15:56:10.5611379Z     See https://clang.llvm.org/docs/ClangFormat.html.
2024-06-19T15:56:10.5611957Z     Run `lintrunner -a` to apply this patch.
2024-06-19T15:56:10.5612304Z 
2024-06-19T15:56:10.5612579Z     You can run `lintrunner -a` to apply this patch.
2024-06-19T15:56:10.5612975Z 
2024-06-19T15:56:10.5613465Z     10  10 | // A allowlist of device type, currently available is PrivateUse1.
2024-06-19T15:56:10.5614575Z     11  11 | ska::flat_hash_set<c10::DeviceType>& DeviceTypeAllowList() {
2024-06-19T15:56:10.5615633Z     12  12 |   static ska::flat_hash_set<c10::DeviceType> deviceTypeAllowList{
2024-06-19T15:56:10.5616623Z     12     |-    DeviceType::PrivateUse1};
2024-06-19T15:56:10.5617514Z         13 |+      DeviceType::PrivateUse1};
2024-06-19T15:56:10.5618278Z     14  14 |   return deviceTypeAllowList;
2024-06-19T15:56:10.5618859Z     15  15 | }
2024-06-19T15:56:10.5619319Z     16  16 | 
2024-06-19T15:56:10.5619703Z 

Summary:
Pull Request resolved: pytorch#128784

Caffe2 lib has 200+ global static initializer usage, which are papar-cut reference to startup perf. Detail in this post https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154.

This Diff migrate StorageImpl.cpp

Addtional Context: https://fb.workplace.com/groups/arglassesperf/permalink/623909116287154

Test Plan: CI

Reviewed By: aaronenyeshi

Differential Revision: D58639283
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge -f 'Landed internally'

(Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants