From c365977a1e6cb500c6c359e9bfd0cf9d59675240 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Sat, 5 Sep 2020 16:30:18 +0900 Subject: [PATCH] =?UTF-8?q?CUDA=E3=83=87=E3=83=90=E3=82=A4=E3=82=B9?= =?UTF-8?q?=E3=81=AECC=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=923.5?= =?UTF-8?q?=E3=81=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/waifu2x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/waifu2x.cpp b/common/waifu2x.cpp index 072cd48..2cb1a55 100644 --- a/common/waifu2x.cpp +++ b/common/waifu2x.cpp @@ -431,7 +431,7 @@ Waifu2x::eWaifu2xCudaError Waifu2x::can_use_CUDA() { cudaDeviceProp prop; cudaGetDeviceProperties(&prop, 0); - if (prop.major >= 2) + if (prop.major >= 3 && prop.minor >= 5 || prop.major >= 4) CudaFlag = eWaifu2xCudaError_OK; else CudaFlag = eWaifu2xCudaError_OldDevice;