Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

[Windows] [PT2.6] Add MSVC flag #945

wants to merge 10 commits into from

Conversation

ratnampa
Copy link
Contributor

No description provided.

@ratnampa ratnampa changed the title Add MSVC flag and oneAPI compatibility Add MSVC flag Sep 27, 2024
@@ -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-)
Copy link
Contributor

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
Copy link
Contributor

Should be a duplicate PR. #943 I saw the related issue. Thanks. I will close the PR, once #943 is merged.

@fengyuan14
Copy link
Contributor

Should be a duplicate PR. #943 I saw the related issue. Thanks. I will close the PR, once #943 is merged.

I checked the internal JIRA of the issue. Compiler team said it is a WA for the building error. Could you describe the issue and mark the change as a WA?

@ratnampa
Copy link
Contributor Author

@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

@ratnampa ratnampa changed the title Add MSVC flag [Windows] [WA} Add MSVC flag Oct 23, 2024
@ratnampa ratnampa changed the title [Windows] [WA} Add MSVC flag [Windows] [WA] Add MSVC flag Oct 23, 2024
@ratnampa ratnampa changed the title [Windows] [WA] Add MSVC flag [Windows] [PT2.6] Add MSVC flag Oct 30, 2024
@ratnampa
Copy link
Contributor Author

ratnampa commented Nov 13, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants