-
Notifications
You must be signed in to change notification settings - Fork 3
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
Compiler Flags #15
Comments
Good question, one solution would be to automatically detect CPU features and enable appropriate flags automatically – but this could cause problems on compute clusters. Interestingly GCC just ignored unsupported flags for example on ARM. Maybe an internal lookup table for different CPU architectures? |
That might be possible but sounds rather complicated. |
We will check whether the host code is performance critical (probably it is not) and adapt the compiler flags accordingly, e.g. by setting only |
Closed in #30. |
Do we really want to set all the compiler flags of
toolkitICL/CMakeLists.txt
Line 30 in acb8f5d
In particular, options such as
-mavx2
are problematic if the target CPU does not support them. This caused some errors while enabling Mac OS X in #14.Some reasons for the current choice are probably connected with clusters, where build machines have not the same architecture as the compute nodes. But this could be caught by some other variables passed to cmake. What is your opinion, @philipheinisch?
The text was updated successfully, but these errors were encountered: