mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-23 11:49:34 +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)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (gpuList == null)
|
||||
Init();
|
||||
@@ -92,5 +94,11 @@ namespace Flowframes.OS
|
||||
|
||||
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