Skip to content

Commit

Permalink
Upgrade ipex-llm[cpp] to oneAPI 2025.0 on Windows (#12778)
Browse files Browse the repository at this point in the history
* Upgrade ipex-llm[cpp] to oneAPI 2025.0

* Fit oneapi pypi dependency on Windows for now
  • Loading branch information
Oscilloscope98 authored Feb 7, 2025
1 parent ca1d7b7 commit fd28cf1
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions python/llm/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ def setup_package():

oneapi_2024_0_requires = ["dpcpp-cpp-rt==2024.0.2;platform_system=='Windows'",
"mkl-dpcpp==2024.0.0;platform_system=='Windows'"]
oneapi_2024_2_requires = ["dpcpp-cpp-rt==2024.2.1;platform_system=='Windows'",
"mkl-dpcpp==2024.2.1;platform_system=='Windows'"]

# Linux install with --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
xpu_21_requires = copy.deepcopy(all_requires)
for exclude_require in cpu_torch_version:
Expand Down Expand Up @@ -326,17 +325,12 @@ def setup_package():
"dpcpp-cpp-rt==2025.0.2"]

cpp_requires = ["bigdl-core-cpp==" + CORE_XE_VERSION,
"onednn-devel==2024.2.1;platform_system=='Windows'",
"onednn==2024.2.1;platform_system=='Windows'"]
cpp_requires += oneapi_2024_2_requires
"onednn-devel==2025.0.1;platform_system=='Windows'",
"onednn==2025.0.1;platform_system=='Windows'",
"dpcpp-cpp-rt==2025.0.2;platform_system=='Windows'",
"mkl-dpcpp==2025.0.1;platform_system=='Windows'"]
cpp_requires += COMMON_DEP

cpp_arl_requires = ["bigdl-core-cpp==" + CORE_XE_VERSION,
"onednn-devel==2024.1.1;platform_system=='Windows'",
"onednn==2024.1.1;platform_system=='Windows'"]
cpp_arl_requires += oneapi_2024_2_requires
cpp_arl_requires += COMMON_DEP

serving_requires = ['py-cpuinfo']
serving_requires += SERVING_DEP
serving_requires += COMMON_DEP
Expand Down Expand Up @@ -378,7 +372,6 @@ def setup_package():
"xpu-2-6": xpu_26_requires,
"serving": serving_requires,
"cpp": cpp_requires,
"cpp-arl": cpp_arl_requires,
"llama-index": llama_index_requires}, # for internal usage when upstreaming for llama-index
classifiers=[
'License :: OSI Approved :: Apache Software License',
Expand Down

0 comments on commit fd28cf1

Please sign in to comment.