alibaba / rtp-llm

RTP-LLM: Alibaba's high-performance LLM inference engine for diverse applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

编译报错 v0.2.0 版error: cannot convert ‘<brace-enclosed initializer list>’ to ‘const fastertransformer::AllGatherParams&’

invisifire opened this issue · comments

Use the official CUDA 12 image
Modify Bazel to version 5.2.0
After adding #include according to the installation error prompt,
使用 官方镜像cuda12
修改bazel 至5.2.0 版本

因报错安装提示增加#include 后
ce6da78ec2bd8c8bce4a5dc63eb3b1d

The compilation continues to report errors.
编译继续报错
817b08bc7cd203c8fa9f8668ac61240

The CUDA version and GCC version are as follows:
cuda版本 和 gcc版本如下

042164c18d9ccc9372856019388665d

你这个gcc咋报 std::unique_lock 找不到呢?
我来复现下吧。

你这个gcc咋报 std::unique_lock 找不到呢? 我来复现下吧。

使用官方提供的 cuda12 镜像 , clone本项目到本地, 降级bazel为5.2.0 , 设置pip超时10000秒, 然后直接运行命令
bazel build //maga_transformer:maga_transformer --jobs 100 --verbose_failures --config=cuda12_2

你这个gcc咋报 std::unique_lock 找不到呢? 我来复现下吧。

我目前降级gcc为10.5就会报另一个错误
ERROR: /home/dev/.cache/bazel/_bazel_dev/94ec30666e7a680173052746412c29d4/external/com_google_absl/absl/base/BUILD.bazel:54:11: Compiling absl/base/log_severity.cc failed: The include path '/usr/lib/gcc/x86_64-linux-gnu/10/include' references a path outside of the execution root.
ERROR: /home/dev/.cache/bazel/_bazel_dev/94ec30666e7a680173052746412c29d4/external/com_google_absl/absl/types/BUILD.bazel:166:11: Compiling absl/types/bad_variant_access.cc failed: The include path '/usr/lib/gcc/x86_64-linux-gnu/10/include' references a path outside of the execution root.
ERROR: /home/dev/.cache/bazel/_bazel_dev/94ec30666e7a680173052746412c29d4/external/com_google_absl/absl/numeric/BUILD.bazel:27:11: Compiling absl/numeric/int128.cc failed: The include path '/usr/lib/gcc/x86_64-linux-gnu/10/include' references a path outside of the execution root.
Target //maga_transformer:maga_transformer failed to build
INFO: Elapsed time: 4.628s, Critical Path: 0.17s
INFO: 154 processes: 153 internal, 1 local.
FAILED: Build did NOT complete successfully
include失败

gcc也是镜像里自带的

你这个gcc咋报 std::unique_lock 找不到呢? 我来复现下吧。

请问有复现出来么?

image
按照这个改了之后就可以了

image 按照这个改了之后就可以了

那我在我们的项目中修改下。