Allow for non-git-tagged LLVM versioning with the catalyst-llvm-dev package

Aperta
#3,352 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cmake
Ambito
build-system

Direzione di ricerca

Read mlir/cmake/LLVMDevCPackConfig.cmake, especially the guard at lines 42–47 linked in the issue, and trace how the LLVM version tag is formed for catalyst-llvm-dev. Check how the guard behaves for commit-tagged and release LLVM versions; done means release versions can be packaged without weakening protection against naming clashes between builds from different commits.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

chore

#3332 added CMake & CPack configs to create the catalyst-llvm-dev package, which contains headers and libs from LLVM/MLIR so that downstream projects can build against Catalyst without building it from source (the catalyst-dev and catalyst-runtime-dev packages are also required).

At the time of writing, Catalyst pins its LLVM dependency to a specific git commit, identified by its commit hash, rather than an LLVM release. Therefore, in order to uniquely identify the catalyst-llvm-dev version, we append the (truncated) commit hash to the LLVM version tag. For example:

catalyst-llvm-dev-Linux-x86_64-22.0.0git-8f264586.tar.gz

Before creating the package, a guard was put in place to ensure that the commit hash is present in the LLVM version tag to avoid naming clashes from two LLVM builds from the same version but different commit:

https://github.com/PennyLaneAI/catalyst/blob/f2428c5075c50da0bf823c41b721c2916513732f/mlir/cmake/LLVMDevCPackConfig.cmake#L42-L47

However, this will break in the future if Catalyst ever pins to a release of LLVM, rather than a specific commit. Should Catalyst make this change to its LLVM dependency, we will need to update this guard accordingly.

Lingua principale
Python
Stelle
234
Fork
84
Merge medio
3g 11h
PR unite (30g)
78

Preparare l'ambiente

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 PennyLaneAI/catalyst

Tutte le issue di PennyLaneAI/catalyst

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.