Skip to content

Commit

Permalink
fixed state of cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilJohan committed Jul 30, 2024
1 parent 6ad7479 commit 2fc9602
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def get_version(ffmpeg_path):
return version_numbers
except FileNotFoundError:
print(f"FFmpeg executable not found at path: {ffmpeg_path}")
except Exception as e:
print(e)
return None

installed_ffmpeg_path = 'ffmpeg'
Expand Down Expand Up @@ -189,7 +191,7 @@ def cuda_available():
result = subprocess.run(['nvidia-smi'], stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=True)
if result.returncode == 0:
return True # Should be set to true, currently temporarily disabled
return False # Should be set to true, currently temporarily disabled
return False
except FileNotFoundError:
return False
Expand Down

0 comments on commit 2fc9602

Please sign in to comment.