Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[MLX] Probe the usable Metal compiler in Apple CMake presets

Aperta
#22,683 0 commenti 0 reazioni 3 assegnatari Vedi su GitHub

@metascroy ci sta già lavorando.

Dal 10/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug module: build/install module: mlx
Problem

The Apple and pybind presets use xcrun -sdk macosx --find metal. On current Xcode releases this can locate a launcher even when the separately installed Metal Toolchain component is unavailable, so configuration enables MLX and fails later during compilation.

The documentation correction is part of #22620. The preset behavior change is intentionally excluded from that documentation-only PR.

Proposed change

Probe xcrun -sdk macosx metal --version in both presets and update the fallback message to point to xcodebuild -downloadComponent MetalToolchain.

Test plan
  • Configure on Apple silicon with Xcode and the Metal Toolchain installed; verify MLX remains enabled.
  • Configure with Xcode but without the Metal Toolchain; verify MLX is disabled cleanly.
  • Run Apple pybind and MLX build CI.

cc @larryliu0820 @GregoryComer @metascroy

Lingua principale
Python
Stelle
5k
Fork
1.2k
Merge medio
2g 13h
PR unite (30g)
595

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytorch/executorch

Tutte le issue di pytorch/executorch

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.