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

BUG: Fix duplicate variable names in compiler check for AVX512_SKX #19048

Merged
merged 2 commits into from
May 20, 2021

Conversation

r-devulap
Copy link
Member

The code that checks for AVX512 SKX intrisics compiler support has a bug which always causes the check to fail and hence disables code that used AVX512_SKX features. Introduced in #16871.

The code that checks for AVX512 SKX intrisics compiler support has a bug
which always causes the check to fail and hence disables code that used
AVX512_SKX features. Introduced in
numpy#16871.
Comment on lines 197 to 198
__m512i unused_temp = _mm512_castps_si512(_mm512_set1_ps(1.0));\
_mm_mask_storeu_epi8(NULL, 0xFF, _mm_broadcastmb_epi64(temp))',
Copy link
Member

Choose a reason for hiding this comment

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

Which temp is meant to be used in line 198?

Copy link
Member Author

Choose a reason for hiding this comment

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

The one on line 196, it is using the correct input. I added an extra line of code in #16871 that used the same variable name which ended up disabling AVX512_SKX.

Copy link
Member

@mattip mattip left a comment

Choose a reason for hiding this comment

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

Pending CI, looks good to me, thanks

@r-devulap
Copy link
Member Author

Not sure what happened here: https://travis-ci.com/github/numpy/numpy/jobs/506643936

@mattip
Copy link
Member

mattip commented May 20, 2021

We have been seeing that failure itermittently over the last few days. Since it is not relevant for this PR, merging. Thanks @r-devulap

@mattip mattip merged commit a31a1a1 into numpy:main May 20, 2021
@rgommers rgommers added the component: SIMD Issues in SIMD (fast instruction sets) code or machinery label Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug component: SIMD Issues in SIMD (fast instruction sets) code or machinery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants