Allow running CUDA on CPU (or unsupported NV GPUs)

This commit is contained in:
N00MKRAD 2021-04-02 22:26:44 +02:00
parent 94fca1fb7d
commit 5556b5a5c7
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}
}