Skip to content

Conversation

@mfuntowicz
Copy link
Member

PyTorch (especially dynamo) relies on the preprocessor macro _WIN32 to guard compilation of code sections in some places when targetting Windows.

This macro is defined by MSVC defacto but, NVCC and others are not setting it by default which can lead to compilation errors.

This PR ensures the macro is defined when targetting Windows platform so we can safely rely its availability for the preprocessor.

@mfuntowicz mfuntowicz requested a review from danieldk October 23, 2025 08:18
Copy link
Collaborator

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG Thanks !

@mfuntowicz mfuntowicz merged commit 1bed908 into main Oct 23, 2025
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants