423 Star 4.3K Fork 426

GVPPaddlePaddle / Paddle

 / 详情

源码编译安装paddlepaddle报错

待办的
创建于  
2023-02-17 14:52

问题描述 Issue Description
软件环境: kylinv10 、cuda11.2、cudnn8.1;
硬件环境: cpu:phytium GPU:nvidia GTX1060;
安装步骤:
1、git clone https://github.com/PaddlePaddle/Paddle.git
2、cd paddlepaddle
3、cd python && pip install -r requirement.txt
4、mkdir build && cd build
5、ulimit -n 4096
6、cmake .. -DPY_VERSION=3.7 -DPYTHON_EXECUTABLE=which python3 -DWITH_ARM=ON - DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF -DWITH_CUDNN_DSO=ON
7、出现:/home/kylin/2230/Paddle/build/paddle/fluid/eager/auto_code_generator/eager_generator: error while loading shared libraries: libcudart.so.11.0: cannot open shared object file: No such file or directory,问题;
解决方案:
sudo cp /usr/local/cuda-10.0/lib64/libcudnn.so.7 /usr/local/lib/libcudnn.so.7 && sudo ldconfig
[https://blog.csdn.net/martinkeith/article/details/102997059]
8、cd python/dist
9、pip install paddlepaddle_gpu-0.0.0-cp37-cp37m-linux_aarch64.whl
测试方案:
进入python:
import paddle
paddle.utils.run_check()

报错:
Running verify PaddlePaddle program ...
I0215 15:09:51.850409 3916 interpretercore.cc:279] New Executor is Running.
W0215 15:09:51.850878 3916 gpu_resources.cc:85] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.2, Runtime API Version: 11.2

C++ Traceback (most recent call last):
0 paddle::framework::StandaloneExecutor::Run(paddle::framework::Scope*, std::vector<std::string, std::allocator<std::string > > const&, std::vector<std::string, std::allocator<std::string > > const&)
1 paddle::framework::InterpreterCore::Run(std::vector<std::string, std::allocator<std::string > > const&, bool)
2 paddle::framework::interpreter::BuildOpFuncList(phi::Place const&, paddle::framework::BlockDesc const&, std::set<std::string, std::less<std::string >, std::allocator<std::string > > const&, std::vector<paddle::framework::OpFuncNode, std::allocatorpaddle::framework::OpFuncNode >, paddle::framework::VariableScope, paddle::framework::interpreter::ExecutionConfig const&, bool)
3 paddle::platform::DeviceContextPool::Get(phi::Place const&)
4 std::__future_base::_Deferred_state<std:thread:_Invoker<std::tuple<std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > ()(phi::Place const&, bool, int), phi::Place, bool, int> >, std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > >::_M_complete_async()
5 std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, bool*)
6 std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__future_base::_Task_setter<std::unique_ptr<std::__future_base::_Result<std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > >, std::__future_base::_Result_base::_Deleter>, std:thread:_Invoker<std::tuple<std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > ()(phi::Place const&, bool, int), phi::Place, bool, int> >, std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > > >::_M_invoke(std::_Any_data const&)
7 std::unique_ptr<phi::DeviceContext, std::default_deletephi::DeviceContext > paddle::platform::CreateDeviceContextphi::GPUContext(phi::Place const&, bool, int)
8 std::enable_if<std::is_same<phi::GPUContext, phi::GPUContext>::value, phi::GPUContext>::type paddle::platform::ConstructDevCtxphi::GPUContext(phi::Place const&, int)
9 phi::GPUContext::GPUContext(phi::GPUPlace const&, bool, int)
10 phi::InitGpuProperties(phi::Place, int*, int*, int*, int*, int*, int*, std::array<int, 3ul>*)
11 cudnnGetVersion

Error Message Summary:
FatalError: Access to an undefined portion of a memory object is detected by the operating system.
[TimeInfo: *** Aborted at 1676444991 (unix time) try "date -d @1676444991" if you are using GNU date ***]
[SignalInfo: *** SIGBUS (@0x7f57890858) received by PID 3916 (TID 0x7fb7515750) from PID 1468598360 ***]

总线错误

版本&环境信息 Version & Environment Information
Paddle version: 0.0.0
Paddle With CUDA: True

OS: kylin v10
GCC version: (Ubuntu 9.3.0-10kylin2) 9.3.0
Clang version: 10.0.0-4kylin1
CMake version: version 3.26.0-rc2
Libc version: glibc 2.17
Python version: 3.7.12

CUDA version: 11.0.194
Build cuda_11.0_bu.TC445_37.28540450_0
cuDNN version: N/A
Nvidia driver version: 460.84
Nvidia driver List:
GPU 0: GeForce GTX 1060 6GB

评论 (1)

肖剑 创建了任务

项目紧急,希望尽快得到回复。

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
Python
1
https://gitee.com/paddlepaddle/Paddle.git
git@gitee.com:paddlepaddle/Paddle.git
paddlepaddle
Paddle
Paddle

搜索帮助