Repository: pytorch
Issue: Build fails in py311 with torch xpu ops
Labels: module: build,module: windows,triaged,module: xpu

### 🐛 Describe the bug

Building wheel torch-2.6.0a0+gitb86b534
-- Building version 2.6.0a0+gitb86b534
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=E:\pytorch\torch -DCMAKE_PREFIX_PATH=E:\ProgramData\anaconda3\envs\py311\Lib\site-packages;D:\Intel\oneAPI\tbb\latest\env\..;D:\Intel\oneAPI\pti\latest\env\..\lib\cmake\pti;D:\Intel\oneAPI\ipp\latest\lib\cmake\ipp;D:\Intel\oneAPI\dpl\latest\lib\cmake\oneDPL;D:\Intel\oneAPI\dnnl\latest\env\..\lib\cmake;D:\Intel\oneAPI\dal\latest;D:\Intel\oneAPI\compiler\latest; -DPython_EXECUTABLE=E:\ProgramData\anaconda3\envs\py311\python.exe -DTORCH_BUILD_VERSION=2.6.0a0+gitb86b534 -DUSE_CUDA=0 -DUSE_INTEL_LLVM=0 -DUSE_NUMPY=True E:\pytorch
-- The CXX compiler identification is MSVC 19.42.34433.0
-- The C compiler identification is MSVC 19.42.34433.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
CMake Warning at CMakeLists.txt:421 (message):
  TensorPipe cannot be used on Windows.  Set it to OFF


-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Success
-- Performing Test C_HAS_AVX512_1
-- Performing Test C_HAS_AVX512_1 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Success
-- Performing Test CXX_HAS_AVX512_1
-- Performing Test CXX_HAS_AVX512_1 - 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 - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Compiler does not support SVE extension. Will not build perfkernels.
-- Performing Test HAS/UTF_8
-- Performing Test HAS/UTF_8 - Success
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.4 Build 20240802
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

CMake Warning (dev) at E:/ProgramData/anaconda3/envs/py311/Library/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:859 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found SYCL: D:/Intel/oneAPI/compiler/latest/include;D:/Intel/oneAPI/compiler/latest/include/sycl (found version "20240104")
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
--
-- 3.13.0.0
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:E:/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- Looking for cblas_gemm_bf16bf16f32
-- Looking for cblas_gemm_bf16bf16f32 - found
-- Looking for cblas_gemm_f16f16f32
-- Looking for cblas_gemm_f16f16f32 - found
-- MKL libraries: D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_lp64_dll.lib;D:/Intel/oneAPI/mkl/latest/lib/mkl_intel_thread_dll.lib;D:/Intel/oneAPI/mkl/latest/lib/mkl_core_dll.lib;D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib
-- MKL include directory: D:/Intel/oneAPI/mkl/latest/include
-- MKL OpenMP type: Intel
-- MKL OpenMP library: D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- Using ccache: E:/ProgramData/anaconda3/envs/py311/bin/ccache.exe
-- Building for XNNPACK_TARGET_PROCESSOR: x86_64
-- Found Python: E:\ProgramData\anaconda3\envs\py311\python.exe (found version "3.11.10") found components: Interpreter
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.41.0.windows.3")
-- git version: v1.6.1 normalized to 1.6.1
-- Version: 1.6.1
-- Looking for shm_open in rt
-- Looking for shm_open in rt - not found
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
-- Found PythonInterp: E:/ProgramData/anaconda3/envs/py311/python.exe (found version "3.11.10")
-- Performing Test COMPILER_SUPPORTS_AVX512
-- Performing Test COMPILER_SUPPORTS_AVX512 - Success
-- Check OMP with lib D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib and flags -openmp:experimental
-- Check OMP with lib D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib and flags -openmp:experimental
CMake Warning (dev) at E:/ProgramData/anaconda3/envs/py311/Library/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  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/FindOpenMP.cmake:590 (find_package_handle_standard_args)
  third_party/fbgemm/CMakeLists.txt:136 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_C: -openmp:experimental
CMake Warning (dev) at E:/ProgramData/anaconda3/envs/py311/Library/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  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/FindOpenMP.cmake:590 (find_package_handle_standard_args)
  third_party/fbgemm/CMakeLists.txt:136 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_CXX: -openmp:experimental
-- Found OpenMP: TRUE
CMake Warning at third_party/fbgemm/CMakeLists.txt:138 (message):
  OpenMP found! OpenMP_C_INCLUDE_DIRS =


CMake Warning at third_party/fbgemm/CMakeLists.txt:232 (message):
  ==========


CMake Warning at third_party/fbgemm/CMakeLists.txt:233 (message):
  CMAKE_BUILD_TYPE = Release


CMake Warning at third_party/fbgemm/CMakeLists.txt:234 (message):
  CMAKE_CXX_FLAGS_DEBUG is /Z7 /Ob0 /Od /RTC1 /bigobj


CMake Warning at third_party/fbgemm/CMakeLists.txt:235 (message):
  CMAKE_CXX_FLAGS_RELEASE is /O2 /Ob2 /DNDEBUG /bigobj


CMake Warning at third_party/fbgemm/CMakeLists.txt:236 (message):
  ==========


** AsmJit Summary **
   ASMJIT_DIR=E:/pytorch/third_party/fbgemm/third_party/asmjit
   ASMJIT_TEST=FALSE
   ASMJIT_TARGET_TYPE=SHARED
   ASMJIT_DEPS=
   ASMJIT_LIBS=asmjit
   ASMJIT_CFLAGS=
   ASMJIT_PRIVATE_CFLAGS=-MP;-GF;-Zc:__cplusplus;-Zc:inline;-Zc:strictStrings;-Zc:threadSafeInit-;-W4
   ASMJIT_PRIVATE_CFLAGS_DBG=-GS
   ASMJIT_PRIVATE_CFLAGS_REL=-GS-;-O2;-Oi
-- Using third party subdirectory Eigen.
-- Found Python: E:\ProgramData\anaconda3\envs\py311\python.exe (found version "3.11.10") found components: Interpreter Development.Module NumPy
-- Using third_party/pybind11.
-- pybind11 include dirs: E:/pytorch/cmake/../third_party/pybind11/include
-- Could NOT find OpenTelemetryApi (missing: OpenTelemetryApi_INCLUDE_DIRS)
-- Using third_party/opentelemetry-cpp.
-- opentelemetry api include dirs: E:/pytorch/cmake/../third_party/opentelemetry-cpp/api/include
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
    Reason given by package: MPI component 'Fortran' was requested, but language Fortran is not enabled.

CMake Warning at cmake/Dependencies.cmake:928 (message):
  Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF
Call Stack (most recent call first):
  CMakeLists.txt:859 (include)


-- Adding OpenMP CXX_FLAGS: -openmp:experimental
-- Will link against OpenMP libraries: D:/Intel/oneAPI/compiler/latest/lib/libiomp5md.lib
CMake Warning (dev) at third_party/gloo/CMakeLists.txt:21 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_BENCHMARK'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at third_party/gloo/CMakeLists.txt:35 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'USE_NCCL'.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at third_party/gloo/CMakeLists.txt:36 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'USE_RCCL'.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- MSVC detected
-- Set USE_REDIS OFF
-- Set USE_IBVERBS OFF
-- Set USE_NCCL OFF
-- Set USE_RCCL OFF
-- Set USE_LIBUV ON
-- Only USE_LIBUV is supported on Windows
-- Gloo build as SHARED library
Generated: E:/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch-ml.proto
Generated: E:/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch-ml.proto
Generated: E:/pytorch/build/third_party/onnx/onnx/onnx-data_onnx_torch.proto
--
-- ******** Summary ********
--   CMake version                     : 3.18.2
--   CMake command                     : E:/ProgramData/anaconda3/envs/py311/Library/bin/cmake.exe
--   System                            : Windows
--   C++ compiler                      : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
--   C++ compiler version              : 19.42.34433.0
--   CXX flags                         : /DWIN32 /D_WINDOWS /GR /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL /EHsc /wd26812
--   Build type                        : Release
--   Compile definitions               : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;__STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH                 : E:\ProgramData\anaconda3\envs\py311\Lib\site-packages;D:\Intel\oneAPI\tbb\latest\env\..;D:\Intel\oneAPI\pti\latest\env\..\lib\cmake\pti;D:\Intel\oneAPI\ipp\latest\lib\cmake\ipp;D:\Intel\oneAPI\dpl\latest\lib\cmake\oneDPL;D:\Intel\oneAPI\dnnl\latest\env\..\lib\cmake;D:\Intel\oneAPI\dal\latest;D:\Intel\oneAPI\compiler\latest;
--   CMAKE_INSTALL_PREFIX              : E:/pytorch/torch
--   CMAKE_MODULE_PATH                 : E:/pytorch/cmake/Modules
--
--   ONNX version                      : 1.17.0
--   ONNX NAMESPACE                    : onnx_torch
--   ONNX_USE_LITE_PROTO               : OFF
--   USE_PROTOBUF_SHARED_LIBS          : OFF
--   Protobuf_USE_STATIC_LIBS          : ON
--   ONNX_DISABLE_EXCEPTIONS           : OFF
--   ONNX_DISABLE_STATIC_REGISTRATION  : OFF
--   ONNX_WERROR                       : OFF
--   ONNX_BUILD_TESTS                  : OFF
--   ONNX_BUILD_SHARED_LIBS            :
--   BUILD_SHARED_LIBS                 : OFF
--
--   Protobuf compiler                 :
--   Protobuf includes                 :
--   Protobuf libraries                :
--   BUILD_ONNX_PYTHON                 : OFF
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Adding -DNDEBUG to compile flags
CMake Warning at cmake/Dependencies.cmake:1414 (message):
  Not compiling with MAGMA.  Suppress this warning with -DUSE_MAGMA=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:859 (include)


-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for sbgemm_
-- Looking for sbgemm_ - not found
-- Found a library with LAPACK API (mkl).
disabling CUDA because NOT USE_CUDA is set
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- Will build oneDNN UKERNEL
-- MKLDNN_CPU_RUNTIME = OMP
-- DNNL_TARGET_ARCH: X64
-- DNNL_LIBRARY_NAME: dnnl
CMake Warning (dev) at E:/ProgramData/anaconda3/envs/py311/Library/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_C)
  does not match the name of the calling package (OpenMP).  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/FindOpenMP.cmake:590 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/cmake/OpenMP.cmake:55 (find_package)
  third_party/ideep/mkl-dnn/CMakeLists.txt:119 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_C: -openmp:experimental
CMake Warning (dev) at E:/ProgramData/anaconda3/envs/py311/Library/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
  The package name passed to `find_package_handle_standard_args` (OpenMP_CXX)
  does not match the name of the calling package (OpenMP).  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/FindOpenMP.cmake:590 (find_package_handle_standard_args)
  third_party/ideep/mkl-dnn/cmake/OpenMP.cmake:55 (find_package)
  third_party/ideep/mkl-dnn/CMakeLists.txt:119 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenMP_CXX: -openmp:experimental
-- Enabled testing coverage: CI
-- Enabled workload: TRAINING
-- Enabled primitives: ALL
-- Enabled primitive CPU ISA: ALL
-- Enabled primitive GPU ISA: ALL
-- Enabled GeMM kernels ISA: ALL
-- Primitive cache is enabled
-- Experimental functionality for ukernels is enabled
-- The ASM_MASM compiler identification is MSVC
-- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/ml64.exe
-- Graph component is enabled
-- Graph compiler backend is disabled.
-- Found MKL-DNN: TRUE
-- {fmt} version: 11.0.2
-- Build type: Release
-- Using CPU-only version of Kineto
-- Configuring Kineto dependency:
--   KINETO_SOURCE_DIR = E:/pytorch/third_party/kineto/libkineto
--   KINETO_BUILD_TESTS = OFF
--   KINETO_LIBRARY_TYPE = static
INFO CUDA_SOURCE_DIR =
INFO ROCM_SOURCE_DIR =
INFO CUPTI unavailable or disabled - not building GPU profilers
-- Kineto: FMT_SOURCE_DIR = E:/pytorch/third_party/fmt
-- Kineto: FMT_INCLUDE_DIR = E:/pytorch/third_party/fmt/include
INFO CUPTI_INCLUDE_DIR = /extras/CUPTI/include
INFO ROCTRACER_INCLUDE_DIR = /include/roctracer
INFO DYNOLOG_INCLUDE_DIR = E:/pytorch/third_party/kineto/libkineto/third_party/dynolog/
INFO IPCFABRIC_INCLUDE_DIR = E:/pytorch/third_party/kineto/libkineto/third_party/dynolog//dynolog/src/ipcfabric/
-- Configured Kineto (CPU)
-- Performing Test HAS/WD4624
-- Performing Test HAS/WD4624 - Success
-- Performing Test HAS/WD4068
-- Performing Test HAS/WD4068 - Success
-- Performing Test HAS/WD4067
-- Performing Test HAS/WD4067 - Success
-- Performing Test HAS/WD4267
-- Performing Test HAS/WD4267 - Success
-- Performing Test HAS/WD4661
-- Performing Test HAS/WD4661 - Success
-- Performing Test HAS/WD4717
-- Performing Test HAS/WD4717 - Success
-- Performing Test HAS/WD4244
-- Performing Test HAS/WD4244 - Success
-- Performing Test HAS/WD4804
-- Performing Test HAS/WD4804 - Success
-- Performing Test HAS/WD4273
-- Performing Test HAS/WD4273 - Success
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW
-- Performing Test HAS_WNO_STRINGOP_OVERFLOW - Failed
--
-- Use the C++ compiler to compile (MI_USE_CXX=ON)
--
-- Library base name: mimalloc
-- Version          : 1.8
-- Build type       : release
-- C++ Compiler     : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- Compiler flags   : /Zc:__cplusplus
-- Compiler defines :
-- Link libraries   : psapi;shell32;user32;advapi32;bcrypt
-- Build targets    : static
--
-- Performing Test HAS_WDEPRECATED
-- Performing Test HAS_WDEPRECATED - Failed
-- don't use NUMA
-- Looking for backtrace
-- Looking for backtrace - not found
-- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
-- headers outputs:
-- sources outputs:
-- declarations_yaml outputs:
-- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT
-- Performing Test COMPILER_SUPPORTS_NO_AVX256_SPLIT - Failed
-- Using ATen parallel backend: OMP
disabling CUDA because USE_CUDA is set false
-- Found OpenSSL: E:/ProgramData/anaconda3/envs/py311/Library/lib/libcrypto.lib (found version "3.4.0")
-- Check size of long double
-- Check size of long double - done
-- Performing Test COMPILER_SUPPORTS_FLOAT128
-- Performing Test COMPILER_SUPPORTS_FLOAT128 - Failed
-- Performing Test COMPILER_SUPPORTS_SSE2
-- Performing Test COMPILER_SUPPORTS_SSE2 - Success
-- Performing Test COMPILER_SUPPORTS_SSE4
-- Performing Test COMPILER_SUPPORTS_SSE4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX
-- Performing Test COMPILER_SUPPORTS_AVX - Success
-- Performing Test COMPILER_SUPPORTS_FMA4
-- Performing Test COMPILER_SUPPORTS_FMA4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX2
-- Performing Test COMPILER_SUPPORTS_AVX2 - Success
-- Performing Test COMPILER_SUPPORTS_AVX512F
-- Performing Test COMPILER_SUPPORTS_AVX512F - Success
-- Found OpenMP_C: -openmp:experimental (found version "2.0")
-- Found OpenMP_CXX: -openmp:experimental (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Performing Test COMPILER_SUPPORTS_OPENMP
-- Performing Test COMPILER_SUPPORTS_OPENMP - Success
-- Performing Test COMPILER_SUPPORTS_OMP_SIMD
-- Performing Test COMPILER_SUPPORTS_OMP_SIMD - Failed
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Failed
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Failed
-- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM
-- Performing Test COMPILER_SUPPORTS_SYS_GETRANDOM - Failed
-- Configuring build for SLEEF-v3.6.0
   Target system: Windows-10.0.27744
   Target processor: AMD64
   Host system: Windows-10.0.27744
   Host processor: AMD64
   Detected C compiler: MSVC @ C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
   CMake: 3.18.2
   Make program: E:/ProgramData/anaconda3/envs/py311/Library/bin/ninja.exe
-- Using option `/D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE  ` to compile libsleef
-- Building shared libs : OFF
-- Building static test bins: OFF
-- MPFR : LIB_MPFR-NOTFOUND
-- GMP : LIBGMP-NOTFOUND
-- RT :
-- FFTW3 : LIBFFTW3-NOTFOUND
-- OPENSSL : 3.4.0
-- SDE : SDE_COMMAND-NOTFOUND
-- COMPILER_SUPPORTS_OPENMP : FALSE
AT_INSTALL_INCLUDE_DIR include/ATen/core
core header install: E:/pytorch/build/aten/src/ATen/core/TensorBody.h
core header install: E:/pytorch/build/aten/src/ATen/core/aten_interned_strings.h
core header install: E:/pytorch/build/aten/src/ATen/core/enum_tag.h
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.1.4 Build 20240802
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

-- Found SYCL: D:/Intel/oneAPI/compiler/latest/include;D:/Intel/oneAPI/compiler/latest/include/sycl;D:/Intel/oneAPI/compiler/latest/include/sycl (found version "20240104")
1.0.029803
-- Compile Intel GPU AOT Targets for ats-m150,lnl-m,mtl-u,mtl-h
CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:511 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/test/sycl/CMakeLists.txt:6 (sycl_add_executable)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/test/sycl/CMakeLists.txt:16 (sycl_add_library)


为 E:\pytorch\third_party\torch-xpu-ops\yaml\templates <<===>> E:\pytorch\aten\src\ATen\templates 创建的符号链接
CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:84 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:98 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:112 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:126 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:140 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


CMake Error at third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:389 (file):
  file does not recognize sub-command REAL_PATH
Call Stack (most recent call first):
  third_party/torch-xpu-ops/cmake/Modules/FindSYCL.cmake:452 (SYCL_LINK_DEVICE_OBJECTS)
  third_party/torch-xpu-ops/src/BuildOnWindows.cmake:154 (sycl_add_library)
  third_party/torch-xpu-ops/src/CMakeLists.txt:19 (include)


-- Performing Test HAS_WNO_DEPRECATED_COPY
-- Performing Test HAS_WNO_DEPRECATED_COPY - Failed
Please install clang-format-12 before contributing to torch-xpu-ops!
-- Performing Test HAS_WNO_UNUSED_PRIVATE_FIELD
-- Performing Test HAS_WNO_UNUSED_PRIVATE_FIELD - Failed
-- Generating sources for unboxing kernels E:\ProgramData\anaconda3\envs\py311\python.exe;-m;torchgen.gen_executorch;--source-path=E:/pytorch/test/edge/../../test/edge;--install-dir=E:/pytorch/build/out;--tags-path=E:/pytorch/test/edge/../../aten/src/ATen/native/tags.yaml;--aten-yaml-path=E:/pytorch/test/edge/../../aten/src/ATen/native/native_functions.yaml;--use-aten-lib;--op-selection-yaml-path=E:/pytorch/test/edge/../../test/edge/selected_operators.yaml;--custom-ops-yaml-path=E:/pytorch/test/edge/../../test/edge/custom_ops.yaml
CMake Warning at CMakeLists.txt:1280 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.


--
-- ******** Summary ********
-- General:
--   CMake version         : 3.18.2
--   CMake command         : E:/ProgramData/anaconda3/envs/py311/Library/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
--   C++ compiler id       : MSVC
--   C++ compiler version  : 19.42.34433.0
--   Using ccache if found : OFF
--   CXX flags             : /DWIN32 /D_WINDOWS /GR /EHsc /Zc:__cplusplus /bigobj /FS /utf-8 -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_FBGEMM -DUSE_X86_SIMD_SORT -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE /wd4624 /wd4068 /wd4067 /wd4267 /wd4661 /wd4717 /wd4244 /wd4804 /wd4273 -DUSE_XPU
--   Shared LD flags       : /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099
--   Static LD flags       : /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099
--   Module LD flags       : /machine:x64 /ignore:4049 /ignore:4217 /ignore:4099
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNXIFI_ENABLE_EXT=1;ONNX_NAMESPACE=onnx_torch;_CRT_SECURE_NO_DEPRECATE=1;IDEEP_USE_MKL;USE_EXTERNAL_MZCRC;MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS;FLASHATTENTION_DISABLE_ALIBI;WIN32_LEAN_AND_MEAN;_UCRT_LEGACY_INFINITY;NOMINMAX;USE_MIMALLOC
--   CMAKE_PREFIX_PATH     : E:\ProgramData\anaconda3\envs\py311\Lib\site-packages;D:\Intel\oneAPI\tbb\latest\env\..;D:\Intel\oneAPI\pti\latest\env\..\lib\cmake\pti;D:\Intel\oneAPI\ipp\latest\lib\cmake\ipp;D:\Intel\oneAPI\dpl\latest\lib\cmake\oneDPL;D:\Intel\oneAPI\dnnl\latest\env\..\lib\cmake;D:\Intel\oneAPI\dal\latest;D:\Intel\oneAPI\compiler\latest;
--   CMAKE_INSTALL_PREFIX  : E:/pytorch/torch
--   USE_GOLD_LINKER       : OFF
--
--   TORCH_VERSION         : 2.6.0
--   BUILD_STATIC_RUNTIME_BENCHMARK: OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Link local protobuf : ON
--   BUILD_PYTHON          : True
--     Python version      : 3.11.10
--     Python executable   : E:\ProgramData\anaconda3\envs\py311\python.exe
--     Python library      : E:/ProgramData/anaconda3/envs/py311/libs/python311.lib
--     Python includes     : E:/ProgramData/anaconda3/envs/py311/include
--     Python site-package : E:\ProgramData\anaconda3\envs\py311\Lib\site-packages
--   BUILD_SHARED_LIBS     : ON
--   CAFFE2_USE_MSVC_STATIC_RUNTIME     : OFF
--   BUILD_TEST            : True
--   BUILD_JNI             : OFF
--   BUILD_MOBILE_AUTOGRAD : OFF
--   BUILD_LITE_INTERPRETER: OFF
--   INTERN_BUILD_MOBILE   :
--   TRACING_BASED         : OFF
--   USE_BLAS              : 1
--     BLAS                : mkl
--     BLAS_HAS_SBGEMM     :
--   USE_LAPACK            : 1
--     LAPACK              : mkl
--   USE_ASAN              : OFF
--   USE_TSAN              : OFF
--   USE_CPP_CODE_COVERAGE : OFF
--   USE_CUDA              : 0
--   USE_XPU               : ON
--     SYCL compiler version : 20240104
--     SYCL include path   : D:/Intel/oneAPI/compiler/latest/include;D:/Intel/oneAPI/compiler/latest/include/sycl
--     SYCL library        : D:/Intel/oneAPI/compiler/latest/lib/sycl7.lib
--   USE_ROCM              : OFF
--   BUILD_NVFUSER         :
--   USE_EIGEN_FOR_BLAS    :
--   USE_X86_SIMD_SORT     : ON
--   USE_FBGEMM            : ON
--     USE_FAKELOWP          : OFF
--   USE_KINETO            : ON
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LITE_PROTO        : OFF
--   USE_PYTORCH_METAL     : OFF
--   USE_PYTORCH_METAL_EXPORT     : OFF
--   USE_MPS               : OFF
--   CAN_COMPILE_METAL     :
--   USE_MKL               : ON
--     USE_STATIC_MKL      : OFF
--   USE_MKLDNN            : ON
--   USE_MKLDNN_ACL        : OFF
--   USE_MKLDNN_CBLAS      : OFF
--   USE_UCC               : OFF
--   USE_ITT               : ON
--   USE_NCCL              : OFF
--   USE_NNPACK            : OFF
--   USE_NUMPY             : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCL            : OFF
--   USE_OPENMP            : ON
--   USE_MIMALLOC          : ON
--     USE_MIMALLOC_ON_MKL   : OFF
--   USE_VULKAN            : OFF
--   USE_PROF              : OFF
--   USE_PYTORCH_QNNPACK   : OFF
--   USE_XNNPACK           : ON
--   USE_DISTRIBUTED       : ON
--     USE_MPI               : OFF
--     USE_GLOO              : ON
--     USE_GLOO_WITH_OPENSSL : OFF
--     USE_TENSORPIPE        : OFF
--   Public Dependencies  : caffe2::mkl
--   Private Dependencies : Threads::Threads;pthreadpool;cpuinfo;XNNPACK;fbgemm;ittnotify;fp16;caffe2::openmp;gloo;fmt::fmt-header-only;kineto
--   Public CUDA Deps.    :
--   Private CUDA Deps.   :
--   USE_COREML_DELEGATE     : OFF
--   BUILD_LAZY_TS_BACKEND   : ON
--   USE_ROCM_KERNEL_ASSERT : OFF
-- Performing Test HAS_WMISSING_PROTOTYPES
-- Performing Test HAS_WMISSING_PROTOTYPES - Failed
-- Performing Test HAS_WERROR_MISSING_PROTOTYPES
-- Performing Test HAS_WERROR_MISSING_PROTOTYPES - Failed
-- Configuring incomplete, errors occurred!
See also "E:/pytorch/build/CMakeFiles/CMakeOutput.log".
See also "E:/pytorch/build/CMakeFiles/CMakeError.log".

### Versions

 torch-2.6.0a0+gitb86b534

cc @malfet @seemethere @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @gujinghui @EikanWang @fengyuan14 @guangyey