Clear error when `install_cuda_host_injections` fails to run easybuild

Aperta
#496 0 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
Mezza giornata
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
bash, shell
Ambito
tooling

Direzione di ricerca

Start in install_cuda_host_injections.sh, where the script runs eb CUDA-x.y.eb and then eb -S '^CUDA-*. Compare the reported output with the root-privilege and init failures shown in the issue. Done when an EasyBuild startup failure produces a distinct message telling the user to check the output above, instead of the generic 'easyconfig not found' error.

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

Descrizione

The script first tries to run eb CUDA-x.y.eb and if that fails runs eb -S '^CUDA-* and if that fails it just shows a generic error.

However if the actual failure is with eb itself that message is misleading. E.g.:

# /cvmfs/software.eessi.io/versions/2023.06/scripts/gpu_support/nvidia/install_cuda_host_injections.sh --cuda-version 12.8.6 --temp-dir /tmp/ --accept-cuda-eula                                                          
Attempting to load an EasyBuild module to do actual install
ERROR: You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.
ERROR: You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.
ERROR: The easyconfig CUDA-12.8.6.eb was not found in EasyBuild version:
  This is EasyBuild 5.1.0 (framework: 5.1.0, easyblocks: 5.1.0) on host c144.
You either need to give a different version of CUDA to install _or_ 
use a different version of EasyBuild for the installation.

I've seen a similar failure when something else fails during initialization, e.g. pre-creating the modules/all folder.

It would be good if the script could detect such cases and report an error of the kind "EasyBuild failed to run, check the above output for reasons"

Lingua principale
Python
Stelle
14
Fork
54
Merge medio
11h 2m
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 EESSI/docs

Tutte le issue di EESSI/docs

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.