-
Notifications
You must be signed in to change notification settings - Fork 742
Remove unused sleef.h which breaks cross-compilation on windows #13079
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
Remove unused sleef.h which breaks cross-compilation on windows #13079
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13079
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 1 PendingAs of commit 74c887e with merge base 27fa18e ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Good. yeah we use |
|
@digantdesai has imported this pull request. If you are a Meta employee, you can view this in D79648326. |
|
Running CI now |
@digantdesai the linking comes from the "header" file, not from the buck or cmake. Can you please elaborate the Buck change you mean? |
|
NVM we may not need any update to the BUCK file. |
|
wait but gelu.h from aten native is all header only impl which pulls in other headers like Vectorized.h. So inclusion of sleef should likely happen there, which does include sleef under these conditions, https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/cpu/vec/vec128/vec128_float_neon.h#L10-L12. So if you are avoiding use of sleef tahts fine (as long as it doesnt break other builds), but it will cost perf on windows |
That's fine, we are using only a subset of kernels for that case, and the 2 kernels in question are not using Sleef in their implementation. Other sleef kernels are skipped via compilation flags. |
|
Once the CI is green (after rebase) I can merge this. @kimishpatel - OK with this? |
|
yeah ok with me |
|
@digantdesai has imported this pull request. If you are a Meta employee, you can view this in D79648326. |
…rch#13079) Co-authored-by: Digant Desai <[email protected]>
Summary
The sleef.h header contains
which forces the
sleef.libto be linked for the static windows lib.The 2 particular optimized kernels are not using any sleef functions and could be used as a subset that is statically compiled.
Test plan
Removing the header makes the static link to pass without a need to have a sleef lib.