Skip to content

Conversation

cyyever
Copy link
Contributor

@cyyever cyyever commented Aug 26, 2025

No description provided.

@meta-cla meta-cla bot added the cla signed label Aug 26, 2025
@cyyever cyyever changed the title Enable Windows shared libary by exporting all symbols Enable Windows shared libary builds by exporting all symbols Aug 26, 2025
@cyyever
Copy link
Contributor Author

cyyever commented Aug 26, 2025

@sraikund16 FYI

@sraikund16
Copy link
Contributor

sraikund16 commented Aug 26, 2025

@cyyever I am not sure this will fix the issue. Have you tried testing it locally?

The problem is a linking issue, not an exporting one. It looks like when we are building torch_cpu for windows, the dependency for nvperf_host.lib does not propagate from kineto if using INTERFACE IMPORTED. We might need to use the direct path as we did in the old implementation since we don't want to add these dependencies to the parent Cmake file.

@sraikund16
Copy link
Contributor

I think this might be the appropriate fix: #1133

@cyyever
Copy link
Contributor Author

cyyever commented Aug 26, 2025

@sraikund16 This PR is not for fixing the PyTorch issue, it is for the Windows shared builds in general. I have tested it locally on Windows, the tests can link to kineto dll and pass.

@facebook-github-bot
Copy link
Contributor

@sraikund16 has imported this pull request. If you are a Meta employee, you can view this in D81145587.

@facebook-github-bot
Copy link
Contributor

@sraikund16 merged this pull request in 24227d4.