-
Notifications
You must be signed in to change notification settings - Fork 19
Make cuda version check dynamic #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
e010c2d
8611fcb
daac4f5
64e17c4
ee037b1
05a69e4
08e0cbc
2229170
6f72f44
156b1df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,6 @@ | ||||||
| # This can be leveraged by the source_sh() feature of Lmod | ||||||
| # Because we want to source this without immediately raising an LmodError upon failure, this script | ||||||
| # is designed to ALWAYS return a 0 exit code | ||||||
| EESSI_CUDA_DRIVER_VERSION=$(nvidia-smi --query | grep -oP 'CUDA Version\s*:\s*\K[0-9.]+') || return 0 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't allow for the fact that someone can use compatibility libraries to improve the compute capability supported by the driver (and this can be done in user space)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
could give a way to do this |
||||||
| # The || return 0 shouldn't be needed, but just to be overly sure that this script always returns 0 | ||||||
| export EESSI_CUDA_DRIVER_VERSION || return 0 | ||||||
Uh oh!
There was an error while loading. Please reload this page.