-
Notifications
You must be signed in to change notification settings - Fork 57
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
cmake change for correct placement of autodetected tune & arch flags of GCC and SVE enablement on AARCH64 #125
Conversation
Unfortunately, this fails on all other platforms currently on our Jenkins CI: https://jenkins.vectorcamp.gr/blue/organizations/jenkins/VectorCamp%2Fvectorscan-ci/detail/vectorscan-ci/109/pipeline (direct URLs fail for Blue Ocean plugin). If this is to be accepted it has to continue working for all other architectures. |
@abondarev84 By the way, when you are done, could you please submit this PR against develop branch? Thanks. |
of course |
tune and arch flags will be applied from autodetect only if they have been created by the process, otherwise the old logical flow remains wrt the flags
I confirm that it works on my graviton3 system with gcc, unfortunately it fails with clang (tested 11 and 13). |
do you mind referencing to what failed? run jenking run 124 is still running without errors so far. for run 123 I see that sve wasn't found but it wasn't in the flags or cmake command. |
Jenkins jobs do not run SVE specific builds (yet), it's only NEON. If you try building on graviton3 system with you will see the error. |
there were no changes to clang logic path. |
The problem is that it has to work for clang as well, before it can be merged. I see that clang correctly sets -march=armv8+sve in the CFLAGS/CXXFLAGS, so I'm wondering why it fails to detect arm_sve.h. |
right, ARCH_C_FLAGS/ARCH_CXX_FLAGS are set correctly, but they are not used in CHECK_INCLUDE_FILE_CXX for clang, which leads to failure. |
yup, that's it, adding this line before the CHECK_INCLUDE_FILE_CXX, line 361, fixes the build: |
could you also remove Jenkinsfile from the PR? thanks |
I updated my fork, should I remove the merge from remote and leave my repo at my newest commit? |
@markos removed the merge from your origin. |
ok, let's fix the clang issue as mentioned in #125 (comment) and wait for jenkins to be done and it should be good to go :) |
also updated README for SVE short explanation