mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 21:52:49 +00:00
CUDAデバイスのCCチェックを3.5に更新
This commit is contained in:
parent
07daa3665c
commit
c365977a1e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user