Skip to content

Commit

Permalink
Merge pull request #35 from Disty0/main
Browse files Browse the repository at this point in the history
Add OpenVINO
  • Loading branch information
vladmandic authored Sep 28, 2023
2 parents b73ffdc + b537b07 commit 75b6c5a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/system-info.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,17 @@ def get_user():

def get_gpu():
if not torch.cuda.is_available():
return {}
try:
if shared.cmd_opts.use_openvino:
from modules.intel.openvino import get_openvino_device
return {
'device': get_openvino_device(),
'openvino': get_package_version("openvino")
}
else:
return {}
except Exception:
return {}
else:
try:
if torch.version.cuda:
Expand Down

0 comments on commit 75b6c5a

Please sign in to comment.