mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-13 14:00:48 +02:00
Allow running CUDA on CPU (or unsupported NV GPUs)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user