Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

cpuid.h does not exist on ppc64(le) or s390x #22

Open
QuLogic opened this issue Jan 2, 2018 · 2 comments
Open

cpuid.h does not exist on ppc64(le) or s390x #22

QuLogic opened this issue Jan 2, 2018 · 2 comments

Comments

@QuLogic
Copy link
Contributor

QuLogic commented Jan 2, 2018

cpuid.h is included if not on Windows or ARM, but it doesn't appear to exist on ppc64(le)/s390x either. Compile fails on ppc64, ppc64le, and s390x because the header cannot be found (note this build is for pyfastnoisesimd, but the problem is here.)

I don't know much about this arch, so I don't know what can be used to replace cpuid.

@Auburn
Copy link
Owner

Auburn commented Jan 2, 2018

The architectures you listed do not support SSE/AVX I know there is some form of SIMD for power PC but I don't think I will have time to add support for it any time soon.

@QuLogic
Copy link
Contributor Author

QuLogic commented Jan 2, 2018

Hmm, no need to go through too much trouble; I'd be happy if I could compile with the fallback only (maybe I just need to disable them and leave it at that.)

Bit confused that ppc64 is listed here though?

// SSE2/NEON support is guaranteed on 64bit CPUs so no fallback is needed
#if !(defined(_WIN64) || defined(__x86_64__) || defined(__ppc64__) || defined(__aarch64__) || defined(FN_IOS)) || defined(_DEBUG)
#define FN_COMPILE_NO_SIMD_FALLBACK
#endif

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

No branches or pull requests

2 participants