li-plus / chatglm.cpp

C++ implementation of ChatGLM-6B & ChatGLM2-6B & ChatGLM3 & GLM4
MIT License
2.81k stars 327 forks source link

在maos上启用metal的话似乎必须安装xcode了? #321

Open mahabuta opened 2 weeks ago

mahabuta commented 2 weeks ago

今天更新了一下到0.4版本,但是cmake时候提示 xcrun: error: unable to find utility "metal", not a developer tool or in PATH make[2]: [bin/default.metallib] Error 72 make[1]: [third_party/ggml/src/CMakeFiles/ggml-metal.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs....

根据 https://github.com/gfx-rs/gfx/issues/2309 的讨论,必须安装xcode才能解决,之前的版本是不需要的