8000 Re-enabled builds for PyTorch 2.3 and 2.4 on Windows by Luthaf · Pull Request #651 · metatensor/metatensor · GitHub
[go: up one dir, main page]

Skip to content

Re-enabled builds for PyTorch 2.3 and 2.4 on Windows #651

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

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

Luthaf
Copy link
Member
@Luthaf Luthaf commented Jun 13, 2024

As it says on the tin! PyTorch 2.3.1 should have fixed the previous issue on Windows.

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

📚 Download documentation preview for this pull-request

⚙️ Download Python wheels for this pull-request (you can install these with pip)

@Luthaf Luthaf force-pushed the windows-torch-2.3 branch 2 times, most recently from cc3af9a to 9e46cc3 Compare July 22, 2024 15:58
Comment on lines +231 to +239
if sys.platform == "win32":
# On Windows, starting with PyTorch 2.3, the file shm.dll in torch has a
# dependency on mkl DLLs. When building the code using pip build isolation, pip
# installs the mkl package in a place where the os is not trying to load
#
# This is a very similar fix to https://github.com/pytorch/pytorch/pull/126095,
# except only applying when importing torch from a build-isolation virtual
# environment created by pip (`python -m build` does not seems to suffer from
# this).
Copy link
Member Author
@Luthaf Luthaf Jul 22, 2024

Choose a reason for hiding this comment

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

We'll need to keep this hack around until pytorch/pytorch#131340 is merged, released, and available on all torch releases we support.

@Luthaf Luthaf force-pushed the windows-torch-2.3 branch 2 times, most recently from 91c354a to 334efd8 Compare July 23, 2024 08:57
@Luthaf Luthaf requested a review from frostedoyster July 23, 2024 09:25
@Luthaf Luthaf mentioned this pull request Aug 14, 2024
@Luthaf Luthaf force-pushed the windows-torch-2.3 branch from 334efd8 to ecd2717 Compare August 15, 2024 08:48
@Luthaf Luthaf changed the title Re-enabled builds for PyTorch 2.3 on Windows Re-enabled builds for PyTorch 2.3 and 2.4 on Windows Aug 15, 2024
@Luthaf Luthaf merged commit 95f50ab into metatensor:master Aug 15, 2024
66 checks passed
@Luthaf Luthaf deleted the windows-torch-2.3 branch August 15, 2024 10:45
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.

2 participants
0