mirror of https://github.com/n00mkrad/flowframes
Allow running CUDA on CPU (or unsupported NV GPUs)
This commit is contained in:
parent
94fca1fb7d
commit
5556b5a5c7
|
@ -348,8 +348,8 @@ namespace Flowframes.Main
|
|||
|
||||
if (I.current.ai.aiName.ToUpper().Contains("CUDA") && NvApi.gpuList.Count < 1)
|
||||
{
|
||||
ShowMessage("An Nvidia GPU is required for CUDA implementations!\n\nTry an NCNN implementation instead.", "Error");
|
||||
I.Cancel("No CUDA-capable graphics card available.", true);
|
||||
ShowMessage("Warning: No Nvidia GPU was detected. CUDA might fall back to CPU!\n\nTry an NCNN implementation instead if you don't have an Nvidia GPU.", "Error");
|
||||
//I.Cancel("No CUDA-capable graphics card available.", true);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace Flowframes.OS
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.Log("No Nvidia GPU(s) detected. You will not be able to use CUDA implementations.");
|
||||
Logger.Log("No Nvidia GPU(s) detected. You will not be able to use CUDA implementations on GPU.");
|
||||
Logger.Log($"Failed to initialize NvApi: {e.Message}\nIgnore this if you don't have an Nvidia GPU.", true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue