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

Fix use of crc32c 3way on portable builds using MSVC #10667

Conversation

danielen1337
Copy link
Contributor

Hello,
As discussed previously in this discussion, the mentioned PR introduced a regression in portable versions that compile with MSVC - crc_3way optimization won't be used even in cases where it is supported.

This PR aims to fix just that.

@facebook-github-bot
Copy link
Contributor

Hi @danielen1337!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@danielen1337 danielen1337 force-pushed the fix_crc32_3way_on_portable_builds_using_msvc branch from 38baa04 to c9b47ba Compare September 14, 2022 13:06
@kobykahane
Copy link
Contributor

@ajkr @pdillinger Do you have any feedback on this?

@siying
Copy link
Contributor

siying commented Oct 10, 2022

@adamretter are you be able to help take a look?

@alanpaxton
Copy link
Contributor

Hi @siying @adamretter has asked me to review this on his behalf. Could you approve the workflows so we can sanity check that the builds (MSVC and the rest) are OK ? On initial inspection the code looks to me as if it does as intended.

@alanpaxton
Copy link
Contributor

Hi @danielen1337 - thinking about tests. This looks like something that would be tricky to test in a CI way; would come down to timing a test and needing specific hardware. I take it you've confirmed for your MSVC platform(s) that with this PR crc32c is now used when you have PORTABLE and MSVC ?

@alanpaxton
Copy link
Contributor

Hi @danielen1337; see above failed check. You need to "$ make format" on your branch to ensure that it conforms to the formatting requirements.

@danielen1337 danielen1337 force-pushed the fix_crc32_3way_on_portable_builds_using_msvc branch from c9b47ba to 88878eb Compare October 19, 2022 14:16
@danielen1337 danielen1337 force-pushed the fix_crc32_3way_on_portable_builds_using_msvc branch from 88878eb to 571fd3f Compare October 23, 2022 12:49
@alanpaxton
Copy link
Contributor

Hi @siying @kobykahane @adamretter this LGTM, format has been fixed, but needs someone to approve workflows on the contributor so that the CI can run.

@danielen1337
Copy link
Contributor Author

Thanks @alanpaxton , I've check the use-case of portable build using MSVC and it uses the optomized version of the crc as expected.

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. There are a few points that could use more explanation or code change.

CMakeLists.txt Outdated Show resolved Hide resolved
util/crc32c.cc Outdated Show resolved Hide resolved
util/crc32c.cc Outdated Show resolved Hide resolved
@facebook-github-bot
Copy link
Contributor

@danielen1337 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@facebook-github-bot
Copy link
Contributor

@danielen1337 has updated the pull request. You must reimport the pull request before landing.

@danielen1337
Copy link
Contributor Author

@ajkr When can this be merged? Thank you

@facebook-github-bot
Copy link
Contributor

@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@ajkr
Copy link
Contributor

ajkr commented Nov 8, 2022

@ajkr When can this be merged? Thank you

It needs a second employee to accept the internal diff. I will try to make sure that happens in time for the version 7.9 branch cut, which is in 2.5 weeks. Usually this process would finish much sooner than that though.

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

Successfully merging this pull request may close these issues.

None yet

6 participants