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

no CUDA-capable device is detected current device:

Open xtntrna opened this issue 1 year ago • 2 comments

image

image

编译的时候是可以找到GPU的,运行的时候报错找不到了,是什么原因?

xtntrna avatar Nov 18 '23 16:11 xtntrna

4090 应该是 sm89 架构,目前默认不会编译,尝试下手动指定 cuda 架构:

cmake -B build -DGGML_CUBLAS=ON -DCUDA_ARCHITECTURES="89"

li-plus avatar Nov 22 '23 03:11 li-plus

重新装了CUDA 12.3 就可以了。

xtntrna avatar Nov 30 '23 02:11 xtntrna