-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Switch off NNPACK on osx? #56
Comments
is that a warning or a failure? |
Could you make the PR for this? providing the same links you just did in the appropriate build file for reference |
pytorch's own conda builds don't turn off NNPACK. |
Then how to avoid the hard fail of a torchvision test? Something in the CF builds is not working with nnpack+osx... |
That's a question for upstream devs. |
Do we know if the error |
i do not know. i don't have access to a Mac laptop. |
I looked at the upstream recipes, and - as Isuru said - However, the bigger issue is that nnpack on OSX requires AVX2, which I don't think we should impose (and which the azure osx CI agents don't support), at least not until the archspec stuff is ready. |
Isn't this a runtime requirement? NNPACK is built, but is not used if the cpu doesn't support it, right? |
Well, that might be the intention, but it ends up being called even if the arch doesn't support it, which is why that torchvision test failed |
Seems to me like that's just a warning and the test should ignore it. |
The way they check if nnpack is available is by trying to initialize it https://github.com/pytorch/pytorch/blob/a9b0a921d592b328e7e80a436ef065dadda5f01b/aten/src/ATen/native/NNPACK.cpp#L115-L117 which gives a warning. |
I'm getting a test failure in conda-forge/torchvision-feedstock#28 for osx that:
Upstream sets
USE_NNPACK=OFF
for the osx jenkins build, but seems to have it enabled by default inCMakeLists.txt
The text was updated successfully, but these errors were encountered: