Clear error when `install_cuda_host_injections` fails to run easybuild

Ouverte
#496 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
Une demi-journée
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
bash, shell
Domaine
tooling

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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"

Langage dominant
Python
Étoiles
14
Forks
54
Merge moyen
11 h 2 min
PR mergées (30 j)
41

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de EESSI/docs

Toutes les issues de EESSI/docs

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.