only install onednn for windows when torch 2.6 (#13207)

This commit is contained in:
Ruonan Wang 2025-06-05 17:28:21 +08:00 committed by GitHub
parent 5a1c1297e1
commit dd49368e0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -304,10 +304,10 @@ def setup_package():
"torchvision==0.21.0+xpu",
"torchaudio==2.6.0+xpu",
"bigdl-core-xe-all==" + CORE_XE_VERSION,
"onednn-devel==2025.0.1",
"onednn==2025.0.1",
"onednn-devel==2025.0.1;platform_system=='Windows'",
"onednn==2025.0.1;platform_system=='Windows'",
"dpcpp-cpp-rt==2025.0.2"]
# Add for testing purposes for now, for Arrow Lake-H with AOT on Windows
# Linux keeps the same as xpu_2.6
xpu_26_arl_requires = copy.deepcopy(all_requires)
@ -320,8 +320,8 @@ def setup_package():
"torchvision==0.21.0+xpu;platform_system=='Linux'",
"torchaudio==2.6.0+xpu;platform_system=='Linux'",
"bigdl-core-xe-all==" + CORE_XE_VERSION,
"onednn-devel==2025.0.1",
"onednn==2025.0.1",
"onednn-devel==2025.0.1;platform_system=='Windows'",
"onednn==2025.0.1;platform_system=='Windows'",
"dpcpp-cpp-rt==2025.0.2"]
cpp_requires = ["bigdl-core-cpp==" + CORE_XE_VERSION,