Skip to content

2.6xpu on ubuntu24.04lts build failed #803

Closed
@quantwin

Description

@quantwin

Describe the issue

follow this guide,

https://pytorch-extension.intel.com/installation?platform=gpu&version=v2.6.10%2Bxpu&os=linux%2Fwsl2&package=source

https://dgpu-docs.intel.com/driver/client/overview.html#installing-client-gpus-on-ubuntu-desktop-24-04-lts

run sh as below, (only ultra9 185H)

~/Downloads/ipex_bundle$ bash compile_bundle.sh /opt/intel/oneapi mtl

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 26.3/26.3 MB 16.4 MB/s eta 0:00:00

Collecting umf==0.10.* (from intel-cmplr-lib-ur==2025.1.0->intel-openmp<2026,>=2024->mkl-static)
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/66/a4/1d289b37333a7c9a54d590d04a4d83aefa0e3d1ab1ad98e592d22080347a/umf-0.10.0-py2.py3-none-manylinux_2_28_x86_64.whl (314 kB)
Installing collected packages: tcmlib, mkl-include, umf, tbb, tbb-devel, intel-cmplr-lib-ur, intel-openmp, mkl-static
Attempting uninstall: tcmlib
Found existing installation: tcmlib 1.2.0
Uninstalling tcmlib-1.2.0:
Successfully uninstalled tcmlib-1.2.0
Attempting uninstall: umf
Found existing installation: umf 0.9.1
Uninstalling umf-0.9.1:
Successfully uninstalled umf-0.9.1
Attempting uninstall: tbb
Found existing installation: tbb 2022.1.0
Uninstalling tbb-2022.1.0:
Successfully uninstalled tbb-2022.1.0
Attempting uninstall: intel-cmplr-lib-ur
Found existing installation: intel-cmplr-lib-ur 2025.0.2
Uninstalling intel-cmplr-lib-ur-2025.0.2:
Successfully uninstalled intel-cmplr-lib-ur-2025.0.2
Attempting uninstall: intel-openmp
Found existing installation: intel-openmp 2025.0.2
Uninstalling intel-openmp-2025.0.2:
Successfully uninstalled intel-openmp-2025.0.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
dpcpp-cpp-rt 2025.0.2 requires intel-openmp==2025.0.2, but you have intel-openmp 2025.1.0 which is incompatible.
intel-sycl-rt 2025.0.2 requires intel-cmplr-lib-ur==2025.0.2, but you have intel-cmplr-lib-ur 2025.1.0 which is incompatible.
Successfully installed intel-cmplr-lib-ur-2025.1.0 intel-openmp-2025.1.0 mkl-include-2025.1.0 mkl-static-2025.1.0 tbb-2022.1.0 tbb-devel-2022.1.0 tcmlib-1.3.0 umf-0.10.0
Building wheel torch-2.6.0a0+git1eba9b3
pytorch_extra_install_requirements: intel-cmplr-lib-rt==2025.0.2|intel-cmplr-lib-ur==2025.0.2|intel-cmplr-lic-rt==2025.0.2|intel-sycl-rt==2025.0.2|tcmlib==1.2.0|umf==0.9.1|intel-pti==0.10.0
running clean
-- The CXX compiler identification is GNU 13.3.0
-- The C compiler identification is GNU 13.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- _GLIBCXX_USE_CXX11_ABI=1 is already defined as a cmake variable
-- Not forcing any particular BLAS to be found
-- Could not find ccache. Consider installing ccache to speed up compilation.
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Success
-- Performing Test C_HAS_AVX512_1
-- Performing Test C_HAS_AVX512_1 - Failed
-- Performing Test C_HAS_AVX512_2
-- Performing Test C_HAS_AVX512_2 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Success
-- Performing Test CXX_HAS_AVX512_1
-- Performing Test CXX_HAS_AVX512_1 - Failed
-- Performing Test CXX_HAS_AVX512_2
-- Performing Test CXX_HAS_AVX512_2 - Success
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Performing Test CXX_HAS_SVE256
-- Performing Test CXX_HAS_SVE256 - Failed
-- No SVE processor on this machine.
-- Compiler does not support SVE extension. Will not build perfkernels.
CMake Warning (dev) at /home/eastpeace/miniconda3/envs/pytorch310/lib/python3.10/site-packages/cmake/data/share/cmake-4.0/Modules/FindPackageHandleStandardArgs.cmake:430 (message):
The package name passed to find_package_handle_standard_args() (SYCL) does
not match the name of the calling package (SYCLToolkit). This can lead to
problems in calling code that expects find_package() result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/Modules/FindSYCLToolkit.cmake:125 (find_package_handle_standard_args)
cmake/public/xpu.cmake:12 (find_package)
cmake/Dependencies.cmake:93 (include)
CMakeLists.txt:858 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found SYCL: /opt/intel/oneapi/compiler/2025.0/include;/opt/intel/oneapi/compiler/2025.0/include/sycl (found version "20250004")
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
CMake Error at third_party/protobuf/cmake/CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred!
Building wheel torch-2.6.0a0+git1eba9b3
-- Building version 2.6.0a0+git1eba9b3
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/eastpeace/Downloads/ipex_bundle/pytorch/torch -DCMAKE_PREFIX_PATH=/home/eastpeace/miniconda3/envs/pytorch310/lib/python3.10/site-packages;/home/eastpeace/miniconda3/envs/pytorch310:/opt/intel/oneapi/pti/0.10/lib/cmake/pti:/opt/intel/oneapi/mkl/2025.0/lib/cmake:/opt/intel/oneapi/compiler/2025.0 -DGLIBCXX_USE_CXX11_ABI=1 -DPython_EXECUTABLE=/home/eastpeace/miniconda3/envs/pytorch310/bin/python -DTORCH_BUILD_VERSION=2.6.0a0+git1eba9b3 -DTORCH_XPU_ARCH_LIST=mtl -DUSE_CUDA=0 -DUSE_MPI=0 -DUSE_NUMA=0 -DUSE_NUMPY=True -DUSE_STATIC_MKL=1 /home/eastpeace/Downloads/ipex_bundle/pytorch
(pytorch310) eastpeace@mylinux:~/Downloads/ipex_bundle$ ls

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions