CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:838 (message):
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:838 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.
Compiler: /opt/cuda/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
1
/opt/cuda/bin/gcc: 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:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test) /usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) ggml/src/CMakeLists.txt:220 (enable_language)
-- Configuring incomplete, errors occurred!
(The above is the error message) (Here is some system information that may be relevant)
I think I have installed AMD ROCm (I don't know if hip and ROCm are the same thing) and tried to modify CMakeLists.txt to comment on the content of CUDA, but I got the same error, could you please tell me how to solve this problem
I used paru to install stable diffusion in the AUR. I tried to install two versions of sd, stable-diffuse.cpl-hipblas-git and stable-diffuse.cpl-git, and got the same error
I need your help. Thank you so much
Interesting, looks like your cuda toolkit install is broken.
/opt/cuda/bin/gcc: No such file or directory
Interesting, looks like your cuda toolkit install is broken.
/opt/cuda/bin/gcc: No such file or directory
I try to reinstall CUDA serveral times(sudo pacman -S cuda,version=12.5.1-1),but it does not work