[Windows] CMake preset llm-debug-vulkan selects MSVC instead of Clang, causing XNNPACK compilation failures
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
🐛 Describe the bug
When compiling the parakeet-vulkan target using make parakeet-vulkan I am getting a compilation error during XNNPack compilation:
(compiling source file '../../../../../backends/xnnpack/third-party/XNNPACK/src/subgraph.c')
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(2663,3): error C2143: syntax error: missing ')' before 'string' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(2663,3): error C2059: syntax error: ')' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(2918,5): error C2143: syntax error: missing ')' before 'string' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(2918,5): error C2059: syntax error: ')' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(3500,5): error C2143: syntax error: missing ')' before 'string' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
C:\git\executorch\backends\xnnpack\third-party\XNNPACK\src\subgraph.c(3500,5): error C2059: syntax error: ')' [C:\git\executorch\cmake-out\backends\xnnpack\third-party\XNNPACK\xnnpack-subgraph.vcxproj]
Looking at the first lines of the make output it looks like make is using my installed msvc compiler instead of my installed clang compiler which then fails to compile XNNPACK.
D:\git\executorch>make parakeet-vulkan
"==> Building and installing ExecuTorch with Vulkan..."
cmake --workflow --preset llm-debug-vulkan
Executing workflow step 1 of 2: configure preset "llm-debug-vulkan"
-- Building for: Visual Studio 18 2026
-- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.26200.
-- The C compiler identification is MSVC 19.51.36256.0
-- The CXX compiler identification is MSVC 19.51.36256.0
-- Detecting C compiler ABI info -- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/18/Professional/VC/Tools/MSVC/14.51.36231/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/18/Professional/VC/Tools/MSVC/14.51.36231/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ExecuTorch version: 1.5.0
Is this expected behavior or this is a configuration issue?
My local Visual Studio environment has Clang installed, yet it is not being found by the collect_env.py script. Ideally Windows this Clang version would be detected to give developers a better experience
Versions
c:\git\executorch>python collect_env.py
Collecting environment information...
PyTorch version: 2.13.0+cpu
Is debug build: False
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Microsoft Windows 11 Enterprise (10.0.26200 64-bit)
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 4.4.1
Libc version: N/A
cc @SS-JIA @manuelcandales @digantdesai @cbilgin @GregoryComer @JakeStevens
- Ngôn ngữ chính
- Python
- Star
- 5.1k
- Fork
- 1.2k
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 661
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pytorch/executorch
-
enhancement triaged
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
pytorch/executorch#21640 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Prompts of max_seq_len tokens fail to prefill: export_llm bounds the KV-cache token input at max_seq_len - 1 but publishes get_max_seq_len = max_seq_lenCó thể đã có người làm @alpharomercoma đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
pytorch/executorch#23678 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[v1.6.0] Release Schedule and TrackerCó thể đã có người làm @JacobSzwejbka đã nhận 3 ngày trước. Đang mở
pytorch/executorch#23608 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
QNN sharded LLM export fails: ResolveDebugHandle is not the last edge pass (dep_table entry overwritten by SplitGraph registration)Có thể đã có người làm @psiddh đã nhận 3 ngày trước. Đang mởbug module: llm module: qnn triaged
pytorch/executorch#23580 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
pytorch/executorch#23553 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pytorch/executorch
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
PedestrianDynamics/pyFDS-Evac#766 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Markdown tables render as literal text in 3 example files (missing blank line before header)Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 91/100
alchaincyf/nuwa-skill#86 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Docs Needs Triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
pandas-dev/pandas#71055 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: graphify reads files that git's global ignore file hidesCó thể đã có người làm @smngvlkz đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Graphify-Labs/graphify#4335 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày