From 1eccfb157ab9855b3f81872a23502fb15f455e0a Mon Sep 17 00:00:00 2001 From: PyTorch MergeBot Date: Mon, 25 Aug 2025 12:46:12 +0000 Subject: [PATCH] Revert "[BE] Remove intel-openmp dependency in setup.py (#160976)" This reverts commit e4839470470168648dee5997f57347bb8541ea2b. Reverted https://github.com/pytorch/pytorch/pull/160976 on behalf of https://github.com/malfet due to This PR is doing something strange ([comment](https://github.com/pytorch/pytorch/pull/160976#issuecomment-3220120462)) --- .ci/pytorch/win-test.sh | 3 --- setup.py | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.ci/pytorch/win-test.sh b/.ci/pytorch/win-test.sh index 2371852f8652..be7f3e4bb35c 100755 --- a/.ci/pytorch/win-test.sh +++ b/.ci/pytorch/win-test.sh @@ -55,9 +55,6 @@ python -m pip install pulp==2.9.0 # Install expecttest to merge https://github.com/pytorch/pytorch/pull/155308 python -m pip install expecttest==0.3.0 -# Install intel-openmp -python -m pip install intel-openmp==2025.1.1 - run_tests() { # Run nvidia-smi if available for path in '/c/Program Files/NVIDIA Corporation/NVSMI/nvidia-smi.exe' /c/Windows/System32/nvidia-smi.exe; do diff --git a/setup.py b/setup.py index 203e09f1b733..9ae29fc8fd2b 100644 --- a/setup.py +++ b/setup.py @@ -1588,6 +1588,7 @@ def main() -> None: "networkx>=2.5.1", "jinja2", "fsspec>=0.8.5", + 'intel-openmp==2025.1.1 ;platform_system == "Windows" ', # for Windows inductor ] if BUILD_PYTHON_ONLY: install_requires += [f"{LIBTORCH_PKG_NAME}=={TORCH_VERSION}"]