-
Notifications
You must be signed in to change notification settings - Fork 39
Rename USE_ONEMKL as USE_ONEMKL_XPU and set it as default ON #1642
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
Conversation
761ba29
to
88de14e
Compare
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.
Pull Request Overview
This PR renames the preprocessor macro from USE_ONEMKL to USE_ONEMKL_XPU for clearer differentiation between oneMKL XPU and oneMKL CPU, and sets the new macro as the default ON option.
- Update macro conditionals in xpu/mkl-specific source files
- Update build workflow configuration to reflect the renaming
Reviewed Changes
Copilot reviewed 3 out of 7 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/ATen/native/xpu/mkl/SpectralOps.cpp | Updated macro conditionals to use USE_ONEMKL_XPU |
src/ATen/native/xpu/SpectralOps.cpp | Updated macro conditionals in xpu FFT functions to use USE_ONEMKL_XPU |
.github/workflows/_windows_ut.yml | Updated workflow configuration to set USE_ONEMKL_XPU to 1 |
Files not reviewed (4)
- .github/scripts/build.sh: Language not supported
- cmake/ONEMKL.cmake: Language not supported
- src/BuildOnLinux.cmake: Language not supported
- src/BuildOnWindows.cmake: Language not supported
@chuanqi129 @fengyuan14 Please help review, thanks. |
.github/scripts/build.sh
Outdated
@@ -50,7 +50,7 @@ git submodule sync && git submodule update --init --recursive | |||
python -m pip install -r requirements.txt | |||
python -m pip install mkl-static mkl-include | |||
export USE_STATIC_MKL=1 | |||
export USE_ONEMKL=1 | |||
export USE_ONEMKL_XPU=1 |
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.
Is there any simple API can check whether the oneMKL is compiled and enabled? If have we can add it in the verify
part of this script
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.
These is no such API available. Checking if libtorch_xpu.so => libmkl_sycl_*.so
is an alternative method.
88de14e
to
78f38e6
Compare
Uh oh!
There was an error while loading. Please reload this page.