Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile on fedora 36 with cuda #100

Open
GribanovIvan opened this issue Sep 29, 2022 · 1 comment
Open

Can't compile on fedora 36 with cuda #100

GribanovIvan opened this issue Sep 29, 2022 · 1 comment

Comments

@GribanovIvan
Copy link

[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
Copy link
Owner

cuda11.7 is for gcc11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants