You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error message when build pytorch with xpu-ops, both on BaseKit 2024.2.1 and BaseKit 2025.0.
[7431/7561] Building SYCL device link file caffe2/aten_xpu/src/CMakeFiles/torch_xpu_ops_sycl_kernels.dir/torch_xpu_ops_sycl_kernels_sycl_device_obj.obj
FAILED: caffe2/aten_xpu/src/CMakeFiles/torch_xpu_ops_sycl_kernels.dir/torch_xpu_ops_sycl_kernels_sycl_device_obj.obj D:/dingyi/pytorch/build/caffe2/aten_xpu/src/CMakeFiles/torch_xpu_ops_sycl_kernels.dir/torch_xpu_ops_sycl_kernels_sycl_device_obj.obj
caffe2\aten_xpu\src\CMakeFiles\torch_xpu_ops_sycl_kernels_sycl_device_obj.obj-a7899af.bat e9da7c94967a2b23
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2025.0.0 Build 20241008
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.
C:\Program Files (x86)\Intel\oneAPI\compiler\2025.0\bin\compiler\clang-offload-bundler: error: 'D:/dingyi/pytorch/build/caff2/aten_xpu/src/CMakeFiles/torch_xpu_ops_sycl_kernels.dir/ATen/native/xpu/sycl/./torch_xpu_ops_sycl_kernels_generated_LerpKernels.cpp.obj': no such file or directory
icx: error: clang-offload-bundler command failed with exit code 1 (use -v to see invocation)
Batch file failed at line 3 with errorcode 1
Notice that it does have the .cpp.obj file on the disk, and the command inside torch_xpu_ops_sycl_kernels_sycl_device_obj.obj-a7899af.bat can be executed successfully when pasted to a powshell prompt (but give the same error when pasted to a CMD promot).
Step-by-step to reproduce:
C:\ProgramData\miniforge3\Scripts\activate
conda activate yi
"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvars64.bat"
set XPU_BUNDLE_ROOT=%ProgramFiles(x86)%\Intel\oneAPI
call "%XPU_BUNDLE_ROOT%\compiler\latest\env\vars.bat"
call "%XPU_BUNDLE_ROOT%\ocloc\latest\env\vars.bat"
set CMAKE_SHARED_LINKER_FLAGS=/FORCE:MULTIPLE
set CMAKE_MODULE_LINKER_FLAGS=/FORCE:MULTIPLE
set CMAKE_EXE_LINKER_FLAGS=/FORCE:MULTIPLE
set USE_CUDA=0
python setup.py bdist_wheel > build.log 2>&1
🐛 Describe the bug
I got the following error message when build pytorch with xpu-ops, both on BaseKit 2024.2.1 and BaseKit 2025.0.
Notice that it does have the
.cpp.obj
file on the disk, and the command insidetorch_xpu_ops_sycl_kernels_sycl_device_obj.obj-a7899af.bat
can be executed successfully when pasted to a powshell prompt (but give the same error when pasted to a CMD promot).Step-by-step to reproduce:
Content of torch_xpu_ops_sycl_kernels_sycl_device_obj.obj-a7899af.bat.txt here (added
.txt
dur to the limitation of github)Versions
Torch Sorce version: pytorch/pytorch@7851460
The text was updated successfully, but these errors were encountered: