Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • Paddle
  • Issue
  • #22715

P
Paddle
  • 项目概览

PaddlePaddle / Paddle
大约 2 年 前同步成功

通知 2325
Star 20933
Fork 5424
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 1423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
Paddle
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 1,423
    • Issue 1,423
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 543
    • 合并请求 543
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 2月 21, 2020 by saxon_zh@saxon_zhGuest

【编译错误】官方docker镜像编译paddle带tensorRT失败

Created by: 1224wxwx

  • 版本、环境信息:    1)PaddlePaddle版本:v1.6.3    2)CPU:    3)GPU:K80, CUDA9.0 CUDNN7.6.5    4)系统环境:nvidia-docker2 安装的官方docker镜像paddle:1.6.3-gpu-cuda9.0-cudnn7,gcc改为4.8,ubuntu16.04,tensorRT5.1

  • 安装方式信息: 3)docker编译:请提供docker镜像,编译命令            官方docker镜像paddle:1.6.3-gpu-cuda9.0-cudnn7

  • 复现信息:如为报错,请给出复现环境、复现步骤

  • 问题描述:请详细描述您的问题,同步贴出报错信息、日志/代码关键片段

    1. 进入docker交互后,安装gcc4.8与g++4.8并建立软链接
    2. 根据https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html#installing-debian 里的步骤通过debian安装tensorRT5.1
    3. 根据 https://www.paddlepaddle.org.cn/documentation/docs/zh/1.6/beginners_guide/install/compile/compile_Ubuntu.html 的步骤,一直执行到 cmake .. -DPY_VERSION=3.5 -DWITH_GPU=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Releas 都是正确的,在make以后报错如下:

/paddle/Paddle/paddle/fluid/framework/tensor_util.cu(1): error: this declaration has no storage class or type specifier

/paddle/Paddle/paddle/fluid/framework/tensor_util.cu(1): error: expected a ";"

2 errors detected in the compilation of "/tmp/tmpxft_000035ac_00000000-12_tensor_util.compute_70.cpp1.ii". CMake Error at tensor_generated_tensor_util.cu.o.cmake:262 (message): Error generating file /paddle/Paddle/build/paddle/fluid/framework/CMakeFiles/tensor.dir//./tensor_generated_tensor_util.cu.o

另外我看到之前一个issue的comment https://github.com/PaddlePaddle/Paddle/issues/8931#issuecomment-372195937 里也提到了类似的错误,但是和这里不同的是,我使用的是nvidia-docker并且确定在使用原本docker里的版本预测时候,GPU是起效的。

Thank you for contributing to PaddlePaddle. Before submitting the issue, you could search issue in Github in case that there was a similar issue submitted or resolved before. If there is no solution,please make sure that this is an installation issue including the following details: System information -PaddlePaddle version (eg.1.1)or CommitID -CPU: including CPUMKL/OpenBlas/MKLDNN version -GPU: including CUDA/CUDNN version -OS Platform (eg. Mac OS 10.14) -Python version

  • Install method: pip install/install with docker/build from source(without docker)/build within docker
  • Other special cases that you think may be related to this problem, eg. offline install, special internet condition   To Reproduce Steps to reproduce the behavior Describe your current behavior Code to reproduce the issue Other info / logs
指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/Paddle#22715
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7