From 5556b5a5c71fce07da7d11cf2acdf5e04919e196 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Fri, 2 Apr 2021 22:26:44 +0200 Subject: [PATCH] Allow running CUDA on CPU (or unsupported NV GPUs) --- Code/Main/InterpolateUtils.cs | 4 ++-- Code/OS/NvApi.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index 42c5ed2..9de9563 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -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; } diff --git a/Code/OS/NvApi.cs b/Code/OS/NvApi.cs index 7066eaf..1f83572 100644 --- a/Code/OS/NvApi.cs +++ b/Code/OS/NvApi.cs @@ -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); } }