[GH-ISSUE #1210] macro __AVX512__ doesn't exist #758

Closed
opened 2026-10-14 03:22:46 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @lei-april on GitHub (Apr 18, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1210

Originally assigned to: @lei-april on GitHub.

replace it with __AVX512F__,__AVX512BW__, etc

Originally created by @lei-april on GitHub (Apr 18, 2015). Original GitHub issue: https://github.com/openwall/john/issues/1210 Originally assigned to: @lei-april on GitHub. replace it with `__AVX512F__`,`__AVX512BW__`, etc
bsakaguchi 2026-10-14 03:22:46 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@magnumripper commented on GitHub (Apr 18, 2015):

From ab66d857 / 682f91d7 we have tests in place in autoconf (untested).

<!-- gh-comment-id:94145682 --> @magnumripper commented on GitHub (Apr 18, 2015): From ab66d857 / 682f91d7 we have tests in place in autoconf (untested).
Author
Owner

@magnumripper commented on GitHub (Apr 18, 2015):

So I guess it's pretty much like

#if __AVX512F__ || __MIC__
(...)
#if __AVX512BW__
(...)
#else
(...emulation...)
#endif /* __AVX512BW__ */
#endif /* __AVX512F__ || __MIC__ */
<!-- gh-comment-id:94145815 --> @magnumripper commented on GitHub (Apr 18, 2015): So I guess it's pretty much like ``` C #if __AVX512F__ || __MIC__ (...) #if __AVX512BW__ (...) #else (...emulation...) #endif /* __AVX512BW__ */ #endif /* __AVX512F__ || __MIC__ */ ```
Author
Owner

@magnumripper commented on GitHub (Apr 18, 2015):

https://software.intel.com/sites/landingpage/IntrinsicsGuide/ is excellent for some cross reference searching

<!-- gh-comment-id:94160832 --> @magnumripper commented on GitHub (Apr 18, 2015): https://software.intel.com/sites/landingpage/IntrinsicsGuide/ is excellent for some cross reference searching
Author
Owner

@lei-april commented on GitHub (Apr 19, 2015):

I find some inconsistency between these two intrinsics guides:
[1] https://software.intel.com/sites/landingpage/IntrinsicsGuide/
[2] https://software.intel.com/en-us/node/513445

For example, [1] says _mm512_set1_epi64 is only available on AVX512F, while [2] says it's available on MIC. I think [2] seems more authoritative.

<!-- gh-comment-id:94217824 --> @lei-april commented on GitHub (Apr 19, 2015): I find some inconsistency between these two intrinsics guides: [1] https://software.intel.com/sites/landingpage/IntrinsicsGuide/ [2] https://software.intel.com/en-us/node/513445 For example, [1] says _mm512_set1_epi64 is only available on AVX512F, while [2] says it's available on MIC. I think [2] seems more authoritative.
Author
Owner

@magnumripper commented on GitHub (Apr 19, 2015):

That's a pity cause the [1] has a good interface. I guess I'm going to use both. BTW the actual headers involved are the only hard facts, I guess. I suspect even [2] might be wrong about some detail.

<!-- gh-comment-id:94313941 --> @magnumripper commented on GitHub (Apr 19, 2015): That's a pity cause the [1] has a good interface. I guess I'm going to use both. BTW the actual headers involved are the only hard facts, I guess. I suspect even [2] might be wrong about some detail.
Author
Owner

@lei-april commented on GitHub (Apr 20, 2015):

issue fixed by github.com/magnumripper/JohnTheRipper@2f8bc4871b

<!-- gh-comment-id:94445057 --> @lei-april commented on GitHub (Apr 20, 2015): issue fixed by https://github.com/magnumripper/JohnTheRipper/commit/2f8bc4871b996366e936b300bc6df15351c7ebff
Author
Owner

@lei-april commented on GitHub (Apr 20, 2015):

Alas, it's even worse than I expected.
Both guides say that _mm512_i64gather_epi64 is unavailable on MIC. But when I tested it on MIC, it actually worked! You're right that the headers are the only hard facts.

<!-- gh-comment-id:94466229 --> @lei-april commented on GitHub (Apr 20, 2015): Alas, it's even worse than I expected. Both guides say that `_mm512_i64gather_epi64` is unavailable on MIC. But when I tested it on MIC, it actually worked! You're right that the headers are the only hard facts.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#758
No description provided.