Paddle
Paddle copied to clipboard
麒麟V10基于rocm-4.5.2编译paddle v2.4.2安装包提示“free(): invalid pointer”错误
bug描述 Describe the Bug
使用麒麟V10系统基于rocm-4.5.2编译paddle安装包提示“free(): invalid pointer”错误。
1.编译命令
mkdir build && cd build
cmake -DPY_VERSION=3.7 \
-DWITH_ROCM=ON \
-DWITH_TESTING=ON \
-DWITH_DISTRIBUTE=ON \
-DWITH_MKL=ON \
-DCMAKE_BUILD_TYPE=Release \
..
make -j$(nproc)
2.报错提示
make[2]: 进入目录“/paddle/build”
cd /paddle/build/paddle/fluid/eager/auto_code_generator && /usr/bin/cmake -E env LD_LIBRARY_PATH=/opt/rocm/lib:/opt/rocm/lib64:/paddle/build/paddle/fluid/eager/auto_code_generator/../../pybind /paddle/build/paddle/fluid/eager/auto_code_generator/eager_generator /paddle/paddle/fluid/eager/api/generated/fluid_generated 8
free(): invalid pointer
Subprocess aborted
make[2]: *** [paddle/fluid/eager/auto_code_generator/CMakeFiles/legacy_eager_codegen.dir/build.make:76:paddle/fluid/eager/auto_code_generator/CMakeFiles/legacy_eager_codegen] 错误 1
make[2]: 离开目录“/paddle/build”
make[1]: *** [CMakeFiles/Makefile2:243326:paddle/fluid/eager/auto_code_generator/CMakeFiles/legacy_eager_codegen.dir/all] 错误 2
make[1]: 离开目录“/paddle/build”
make: *** [Makefile:160:all] 错误 2
3.编译环境
1.系统版本
[root@localhost]# cat /etc/os-release
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Tercel)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Tercel)"
ANSI_COLOR="0;31"
2.gcc版本
[root@localhost]# gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/7.3.0/lto-wrapper
目标:x86_64-linux-gnu
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=x86_64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --with-tune=generic --with-arch_32=x86-64 --disable-multilib
线程模型:posix
gcc 版本 7.3.0 (GCC)
3.python版本
[root@localhost]# python3 --version
Python 3.7.9
其他补充信息 Additional Supplementary Information
No response
你好,麻烦使用gcc 8.2再次编译试一下。
gcc8.4 编译也会有这个问题;
@zhengqiwen1997 ; 这个issue可以fix:https://github.com/PaddlePaddle/Paddle/pull/55076, 但是ci中的code-style check fail,fail的部分是原来的未改变的code;请问这种情况怎么过?
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。