Skip to content

Commit

Permalink
Refactor get_cuda() function to check for CUDA version using nvcc com…
Browse files Browse the repository at this point in the history
…mand in PATH
  • Loading branch information
BoxMars committed Oct 10, 2024
1 parent 8e0e710 commit 913bbd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jtop/core/jetson_libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_cuda():
break
except (OSError, Command.CommandException):
pass
elif subprocess.call(["which", "nvcc"]) == 0:
elif subprocess.call(["which", "nvcc"], stdout=subprocess.DEVNULL) == 0:
cmd = Command(['nvcc', '--version'])
try:
lines = cmd()
Expand Down

0 comments on commit 913bbd4

Please sign in to comment.