Skip to content

Commit

Permalink
Fix parsing of nvcc output
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Mar 25, 2024
1 parent 5596991 commit d3ca171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rapids_build_backend/impls.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _get_cuda_version(require_cuda=False):

output_lines = process_output.stdout.decode().splitlines()

match = re.search(r"release (\d+\.\d+)", output_lines[3])
match = re.search(r"release (\d+)\.(\d+)", output_lines[3])
if match is None:
raise ValueError("Failed to parse CUDA version from nvcc output.")
return match.group(1), match.group(2)
Expand Down

0 comments on commit d3ca171

Please sign in to comment.