Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Build issue on ROCm 4.5.2: free(): invalid pointer

Open llseek opened this issue 4 years ago • 5 comments

问题描述 Issue Description

Steps to reproduce:

$ python3.8 -m pip install numpy protobuf patchelf
$ git clone -b release/2.4 https://github.com/PaddlePaddle/Paddle
$ mkdir build
$ cd build
$ cmake -DPY_VERSION=3.8 -DWITH_ROCM=ON -DWITH_NCCL=OFF -DWITH_RCCL=ON -DWITH_TESTING=ON -DCMAKE_HIP_ARCHITECTURES=any ..
$ make -j

Same issue as:

https://github.com/skarupke/flat_hash_map/issues/11 in paddle/utils/flat_hash_map.h

Possible solution:

https://github.com/smessmer/flat_hash_map/commit/a4be1e423d07d6646cfd5d0d95d51fc0cce5b2cd

版本&环境信息 Version & Environment Information

Paddle version: release/2.4 ROCm version: 4.5.2 Python version: 3.8

llseek avatar Dec 06 '22 03:12 llseek

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot avatar Dec 06 '22 03:12 paddle-bot

您好,我们正在复现这个问题

Shixiaowei02 avatar Dec 07 '22 09:12 Shixiaowei02

paddle只支持rocm4.0.1 ,建议参考官方文档编译 https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/hardware_support/rocm_docs/paddle_install_cn.html#anzhuangfangshier-tongguoyuanmabianyianzhuang

ronny1996 avatar Dec 07 '22 10:12 ronny1996

请问 ROCm 4.5 和 之后的 5.0+ 有适配计划吗

llseek avatar Dec 09 '22 02:12 llseek

hi,@ronny1996 : 基于CentOS7.6 + devtoolset7-gcc-7.3.1+rocm-4.5.2编译paddle v2.4.2是成功的,但是Ubuntu 18.04就不行,编译会报free(): invalid pointer错误。

milliar2020 avatar Mar 22 '23 14:03 milliar2020