Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuda12.0官网镜像下编译报错 #60035

Closed
YibinLiu666 opened this issue Dec 15, 2023 · 3 comments
Closed

cuda12.0官网镜像下编译报错 #60035

YibinLiu666 opened this issue Dec 15, 2023 · 3 comments
Assignees
Labels
status/close 已关闭 type/build 编译/安装问题

Comments

@YibinLiu666
Copy link
Contributor

问题描述 Issue Description

当我使用 paddlepaddle/paddle:2.5.2-gpu-cuda12.0-cudnn8.9-trt8.6 镜像创建了docker容器后,在容器中拉取最新的代码编译时会报错
image

我使用的显卡是3090,服务器cuda版本是12.0,由于CUDA_STANDARD为17时 cmake .. -DPY_VERSION=3.10 -DWITH_GPU -DWITH_TESTING=ON 时会报错
image

因此我将 cmake/cuda.make 中的 set(CMAKE_CUDA_STANDARD 17) 改成了set(CMAKE_CUDA_STANDARD 14)

版本&环境信息 Version & Environment Information

None

@YibinLiu666
Copy link
Contributor Author

YibinLiu666 commented Dec 15, 2023

从这个测试代码的修改日志来看好像是昨天的PR #59978 把cc_test_old改成了cc_test导致的,现在把 paddle/cast/Paddle/test/cpp/pir/pass/CMakeLists.txt 里面的cc_test改回去能通过编译,具体原因不清楚
image

@cocoshe
Copy link
Contributor

cocoshe commented Dec 16, 2023

当我使用 paddlepaddle/paddle:2.5.2-gpu-cuda12.0-cudnn8.9-trt8.6 镜像创建了docker容器后,在容器中拉取最新的代码编译时会报错

bin哥再遇到类似问题可以试试这个镜像

docker pull paddlepaddle/paddle:latest-dev-cuda12.0-cudnn8.9-trt8.6-gcc12.2

我在2080ti上试了下用docker,可以成功编译,无痛一遍过

cmake .. -DWITH_TESTING=ON -DWITH_GPU=ON
make -j16

@YibinLiu666
Copy link
Contributor Author

当我使用 paddlepaddle/paddle:2.5.2-gpu-cuda12.0-cudnn8.9-trt8.6 镜像创建了docker容器后,在容器中拉取最新的代码编译时会报错

bin哥再遇到类似问题可以试试这个镜像

docker pull paddlepaddle/paddle:latest-dev-cuda12.0-cudnn8.9-trt8.6-gcc12.2

我在2080ti上试了下用docker,可以成功编译,无痛一遍过

cmake .. -DWITH_TESTING=ON -DWITH_GPU=ON
make -j16

感谢coco哥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/close 已关闭 type/build 编译/安装问题
Projects
None yet
Development

No branches or pull requests

3 participants