chatglm.cpp icon indicating copy to clipboard operation
chatglm.cpp copied to clipboard

跟新cmke版本后出现问题

Open Joker-sad opened this issue 1 year ago • 2 comments

CMake Error at /usr/local/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:277 (message): CMAKE_CUDA_ARCHITECTURES must be non-empty if set. Call Stack (most recent call first): third_party/ggml/src/CMakeLists.txt:203 (enable_language)

Joker-sad avatar Dec 09 '23 06:12 Joker-sad

重新clone仓库,clone时要带--recursive,然后再编译试试

catmeowjiao avatar Dec 14 '23 01:12 catmeowjiao

我今天遇到同样的问题,重新克隆了仓库,但是没用,最终的解决方式为:

  1. 根据以下链接,找到你的compute capability。比如说我的是TESLA M60, 里面写的是5.2,
  2. 打开报错的third_party/ggml/src/CMakeLists.txt,找到203行
  3. 加加入以下命令: set(CMAKE_CUDA_ARCHITECTURES 52),其中52是根据1里面的数值决定的
  4. 存储退出
  5. 然后就成功了

3wweiweiwu avatar Mar 27 '24 01:03 3wweiweiwu