SJTU-IPADS / PowerInfer

High-speed Large Language Model Serving on PCs with Consumer-grade GPUs
MIT License
7.96k stars 412 forks source link

我也遇到了类似的问题,找不到stdatomic.h,不过我是在linux平台 #91

Closed yinghuo302 closed 10 months ago

yinghuo302 commented 10 months ago
          我也遇到了类似的问题,找不到stdatomic.h,不过我是在linux平台
root@n1 ~/z/PowerInfer (main) [2]# cmake --build build --config Release                                                                                             (base) 
[  1%] Building C object CMakeFiles/ggml.dir/ggml.c.o
In file included from /root/zanilia/PowerInfer/ggml-impl.h:3:0,
                 from /root/zanilia/PowerInfer/ggml.c:4:
/root/zanilia/PowerInfer/ggml.h:216:25: fatal error: stdatomic.h: No such file or directory
   #include <stdatomic.h>
                         ^
compilation terminated.
gmake[2]: *** [CMakeFiles/ggml.dir/ggml.c.o] Error 1
gmake[1]: *** [CMakeFiles/ggml.dir/all] Error 2
gmake: *** [all] Error 2

Originally posted by @zanilia1016 in https://github.com/SJTU-IPADS/PowerInfer/issues/49#issuecomment-1869658648

chenshanjxau commented 10 months ago

gcc 版本的问题,我用gcc version 8.3.1 是编译正常。