TianZerL / Anime4KCPP

A high performance anime upscaler
GNU General Public License v3.0
1.82k stars 139 forks source link

Can't compile on fedora 36 with cuda #100

Open GribanovIvan opened 2 years ago

GribanovIvan commented 2 years ago

[root@fedora build]# LANG=C PATH=/usr/local/cuda-11.7/bin/:$PATH cmake .. -DEnable_CUDA=ON -DCMAKE_CUDA_HOST_COMPILER==/usr/local/cuda-11.7/bin/nvcc -- The CXX compiler identification is GNU 12.2.1 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- No build type selected, default to Release CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:724 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

Compiler: /usr/local/cuda-11.7/bin/nvcc

Build flags:

Id flags: --keep;--keep-dir;tmp;-ccbin==/usr/local/cuda-11.7/bin/nvcc;-gencode=arch=compute_35,code=sm_35;-gencode=arch=compute_75,code=sm_75 -v

The output was:

1

nvcc warning : The 'compute_35', 'compute_37', 'sm_35', and 'sm_37' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).

=/usr/local/cuda-11.7/bin/nvcc: No such file or directory

nvcc fatal : Failed to preprocess host compiler properties.

Call Stack (most recent call first): /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:48 (__determine_compiler_id_test) /usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:298 (CMAKE_DETERMINE_COMPILER_ID) CMakeLists.txt:91 (enable_language)

-- Configuring incomplete, errors occurred! See also "/tmp/Anime4KCPP/build/CMakeFiles/CMakeOutput.log". See also "/tmp/Anime4KCPP/build/CMakeFiles/CMakeError.log".

TianZerL commented 2 years ago

cuda11.7 is for gcc11