Skip to content

Commit

Permalink
CUDAデバイスのCCチェックを3.5に更新
Browse files Browse the repository at this point in the history
  • Loading branch information
lltcggie committed Sep 5, 2020
1 parent 07daa36 commit c365977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/waifu2x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c365977

Please sign in to comment.