-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Windows] [PT2.6] Add MSVC flag #945
base: main
Are you sure you want to change the base?
Conversation
@@ -24,6 +24,7 @@ add_library( | |||
${ATen_XPU_GEN_SRCS}) | |||
install(TARGETS torch_xpu_ops_aten DESTINATION "${TORCH_INSTALL_LIB_DIR}") | |||
# target_compile_definitions(torch_xpu_ops_aten PRIVATE CAFFE2_BUILD_MAIN_LIB) | |||
target_compile_options(torch_xpu_ops_aten PRIVATE /permissive-) |
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.
What's the usage? Could you elaborate the add in the description of the commit.
@fengyuan14 the MSVC compiler faces issues with same namespace std being used in the code and this flag allows for stricter conformance and it is able to compile without running into ambiguous symbol std error |
@fengyuan14 I no longer run into this error when building PT2.6 master with oneAPI 2025.0 dl-essentials-bundle. For now, I can close this and re-open if the same error occurs. |
No description provided.