Clear error when `install_cuda_host_injections` fails to run easybuild

Đang mở
#496 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, shell
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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"

Ngôn ngữ chính
Python
Star
14
Fork
54
Merge trung bình
11 giờ 2 phút
Pull request đã merge (30 ngày)
41

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EESSI/docs

Tất cả issue của EESSI/docs

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.