【编译错误】官方docker镜像编译paddle带tensorRT失败
收藏
0
收藏
全部评论(3)
@jiweibo
谢谢回复!
我调整回使用该docker镜像原有gcc5.4 编译,依然报错如下,似乎是一样的:
/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_00002ff1_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 paddle/fluid/framework/CMakeFiles/tensor.dir/build.make:63: recipe for target 'paddle/fluid/framework/CMakeFiles/tensor.dir/tensor_generated_tensor_util.cu.o' failed
0
请登录后评论
版本、环境信息:
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
复现信息:如为报错,请给出复现环境、复现步骤
问题描述:请详细描述您的问题,同步贴出报错信息、日志/代码关键片段
另外我看到之前一个issue的comment #8931 (comment) 里也提到了类似的错误,但是和这里不同的是,我使用的是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
To Reproduce
Steps to reproduce the behavior
Describe your current behavior
Code to reproduce the issue
Other info / logs