Handle nvidia-smi mismatch errors for archdetect.#105
Open
terjekv wants to merge 1 commit intoEESSI:mainfrom
Open
Handle nvidia-smi mismatch errors for archdetect.#105terjekv wants to merge 1 commit intoEESSI:mainfrom
terjekv wants to merge 1 commit intoEESSI:mainfrom
Conversation
Member
Author
|
Note, this will make archdetect fail if nvidia-smi has a driver/library mismatch. This will have consequences for loading the EESSI module as it will now fail if there's a driver/library mismatch, even if the user loading the EESSI module has no intention of using the GPUs. This may not be ideal. |
trz42
requested changes
Oct 16, 2025
Contributor
trz42
left a comment
There was a problem hiding this comment.
Looks good overall. Minor suggestion on improving the information for a user.
| nvidia-smi --query-gpu=gpu_name,count,driver_version,compute_cap --format=csv,noheader 2>&1 > $nvidia_smi_out | ||
| if [[ $? -eq 0 ]]; then | ||
| if grep -q "Failed to initialize NVML: Driver/library version mismatch" $nvidia_smi_out; then | ||
| log "ERROR" "accelpath: nvidia-smi command failed with 'Failed to initialize NVML: Driver/library version mismatch'" |
Contributor
There was a problem hiding this comment.
Thanks for this PR @terjekv !
We discussed this at a support meeting and suggest the following:
- print the unaltered error message (e.g., just
cat $nvidia_smi_out) - print a hint how this could be fixed (you mentioned that you fixed this)
Does this sound ok?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I ran into this as one of our build nodes had the driver mismatch:
Sadly, this resulted in
eessi_archdetect.shsettingEESSI_ACCEL_SUBDIRto an empty value, which again caused building CUDA software withEESSI-extendto fail with: