Skip to content
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

Update CUDA version selection and limit version compatibility #244

Merged
merged 3 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nvautoinstall/interfaces/handle_compatibility_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def __init__(self):
failure("Unsupported OS detected")
general("This tool cannot be used here")
else:
if data == "full":
if data:
success("Supported OS detected")
general("This tool is expected to work correctly here")
elif data == "half":
else:
warning("Minimally supported OS detected")
general("Discretion is advised while using this tool")
failure("Leaving installer")
Expand Down
6 changes: 3 additions & 3 deletions nvautoinstall/operations/handle_compatibility_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def main(self):
def avbl(self):
try:
if distro.id() == "fedora":
if int(distro.os_release_info()["version_id"]) >= 32:
return "full"
if int(distro.os_release_info()["version_id"]) >= 37:
return True
else:
return "half"
return False
else:
return False
except KeyError:
Expand Down
2 changes: 1 addition & 1 deletion nvautoinstall/operations/handle_cuda_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def rpck(self):

def rpin(self):
retndata = subprocess.getstatusoutput(
"dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora35/x86_64/cuda-fedora35.repo" # noqa
"dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora`expr $(rpm -E %fedora) - 1`/x86_64/cuda-fedora`expr $(rpm -E %fedora) - 1`.repo" # noqa
)[0]
return retndata == 0

Expand Down