DeadSix27 / waifu2x-converter-cpp

Improved fork of Waifu2X C++ using OpenCL and OpenCV
MIT License
792 stars 86 forks source link

Cuda 11 fix #252

Closed Wykerd closed 3 years ago

Wykerd commented 4 years ago

Cuda 11 compile patch as suggested in issue #250 using sm_53 instead of sm_30 when Cuda 10 and up is detected.

YukihoAA commented 3 years ago

Supports 2.0~ on CUDA 9 Supports 3.0~ on CUDA 10 Supports 5.2~ on CUDA 11

https://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/

idanka commented 3 years ago
 cmake ..
-- Found git, set version to: v5.3.4 (master-57520b2)
-- System is: Linux (Linux)
-- Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found version "11.4")
-- CUDA not found. disabled.
-- 
-- Config summary:
--  OpenCV: 4.5.2
--  OpenCL: 2.2
--  CUDA: Not found
--  Unicode: TRUE
--  Installing models to: /usr/local/share/waifu2x-converter-cpp
--  Not building test binaries
--  Building for: Unix Makefiles-x86_64
-- 
-- Configuring done

Fedora 34 / nvidia gtx 1650 nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Sun_Aug_15_21:14:11_PDT_2021 Cuda compilation tools, release 11.4, V11.4.120 Build cuda_11.4.r11.4/compiler.30300941_0