-
Notifications
You must be signed in to change notification settings - Fork 7.2k
fix MacOS cmake workflow #4203
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
fix MacOS cmake workflow #4203
Conversation
Thanks a lot for looking into this @pmeier Just a few questions: I'm a bit confused about cmake not properly generating the right linker flags for clang... isn't this literally its job to abstract those things away? Also, where did you find the clang command that was executed? I couldn't find it in the CI logs |
Yeah it should do that. My guess is that the CMake files for mkl are not properly set up so they only work with
It is not there. I've SSH'ed into the CI machine and looked at the CMake cache. |
It does seem related to that indeed, I tried to remove MKL's cmake files ( @malfet @seemethere would you mind taking a look? The current failure can be found here: https://app.circleci.com/pipelines/github/pytorch/vision/9553/workflows/2bb2eaaa-dad8-4b6b-a0fd-fba07e732a70/jobs/706701 Is there a way we can tell the torchvision build to not look at MKL's cmake files? Or should we report to them that their cmake is messing up something? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Summary: * fix MacOS cmake workflow * try only mkl * only pin mkl on MacOs * fix Reviewed By: NicolasHug Differential Revision: D30069954 fbshipit-source-id: 2ffb364062ddedf8026d596de75ba6ec54d57f27 Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
* fix MacOS cmake workflow * try only mkl * only pin mkl on MacOs * fix Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
I did some digging and it seems that
mkl==2021.3.0
and in particular their newly added support for CMake is the problem. If you look at the executedclang
commandit seems that
mkl
appends the libraries with the-l
flag whereas everything else is listed with the full path. The-l
flag looks a lot likegcc
and I'm guessing this is why we are only seeing this on MacOS and not Linux or Windows.Since there is very little we can do, this PR simply pins
mkl
to the previous version2021.2.0
to avoid this.