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

Fixes to run SIMD test cases if HWY_TEST_STANDALONE is 1 #2376

Merged

Conversation

johnplatts
Copy link
Contributor

Updated HWY_TEST_MAIN in hwy/tests/hwy_gtest.h to ensure that the SIMD test cases are executed if HWY_TEST_STANDALONE is 1.

The changes made in pull request #2354 placed the main function that was defined by the HWY_AFTER_TEST() macro in an anonymous namespace (instead of the global namespace) if HWY_TEST_STANDALONE is 1, which prevented SIMD test cases from being executed.

The changes in this pull request remove the unnecessary declaration of the main function by the HWY_AFTER_TEST() macro if HWY_TEST_STANDALONE is 1, and added code to run the SIMD tests in HWY_TEST_MAIN() if HWY_TEST_STANDALONE is 1.

The SIMD unit tests will now run if HWY_TEST_STANDALONE is 1 with the changes in this pull request.

@johnplatts
Copy link
Contributor Author

Should I go ahead and merge pull request #2377 into this pull request (as the changes made in both this pull request and pull request #2377 are needed for CI to pass with MSVC)?

@jan-wassenberg
Copy link
Member

I see :) Yes please, let's merge #2377 into this one.

@copybara-service copybara-service bot merged commit ce3740d into google:master Nov 18, 2024
39 of 40 checks passed
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.

2 participants