mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 19:59:31 +01:00
HasTensorCores defaults to false on error
This commit is contained in:
@@ -81,6 +81,8 @@ namespace Flowframes.OS
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static bool HasTensorCores (int gpu = 0)
|
public static bool HasTensorCores (int gpu = 0)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (gpuList == null)
|
if (gpuList == null)
|
||||||
Init();
|
Init();
|
||||||
@@ -92,5 +94,11 @@ namespace Flowframes.OS
|
|||||||
|
|
||||||
return (gpuName.Contains("RTX ") || gpuName.Contains("Tesla V") || gpuName.Contains("Tesla T"));
|
return (gpuName.Contains("RTX ") || gpuName.Contains("Tesla V") || gpuName.Contains("Tesla T"));
|
||||||
}
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Logger.Log($"HasTensorCores({gpu}) Error: {e.Message}", true);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user