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

Do not include cpuid.h on Apple ARM64. #594

Merged
merged 1 commit into from
Oct 28, 2022
Merged

Do not include cpuid.h on Apple ARM64. #594

merged 1 commit into from
Oct 28, 2022

Conversation

tflinkow
Copy link
Contributor

Fixes #593.

On Apple M1 machines, building Marabou fails because cpuid.h does not support the ARM64 architecture.
Simply not including cpuid.h on ARM64 architectures allows for the build to succeed.

The getCPUId macro definition then falls back to always yield "#" which should be fine, as the only place where getCPUId seems to be used is DnCManager.cpp for logging purposes (which in turn does nothing in non-DEBUG builds).

@wu-haoze wu-haoze self-requested a review October 28, 2022 15:58
@wu-haoze wu-haoze merged commit f43f790 into NeuralNetworkVerification:master Oct 28, 2022
nhamlv-55 pushed a commit to nhamlv-55/Marabou that referenced this pull request Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cpuid.h error in new Mac ARM architecture
2 participants