When I completed the openCL development environment on the mips64el platform, the OpenCL Helloword program was used to test the development environment and encountered the following problems:
*** Error in `./HH1': free(): invalid pointer: 0x0000005559667148 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x9f854)[0x55567e3854]
/lib64/libc.so.6(__libc_free+0x804)[0x55567f422c]
/lib64/libstdc++.so.6(_ZdlPv+0x34)[0x555644e45c]
/lib64/libstdc++.so.6(+0x12cb58)[0x555650cb58]
/lib64/libstdc++.so.6(_ZNSs4_Rep10_M_destroyERKSaIcE+0x78)[0x555650b958]
/lib64/libMesaOpenCL.so.1(+0x3302dc)[0x5556c702dc]
Program for testing is from AMD_APP_SDK 3.0
, including HelloWorld.cpp
and HelloWorld.cl
.
I hope someone can give some tips on how to solve the problem of openCL program memory crash. First Thank you。
The information for the test platform and related packages is as follows:
[root@localhost ~]# rpm -qa | grep llvm
llvm-libs-3.7.0-4.fc21.loongson.mips64el
llvm-3.7.0-4.fc21.loongson.mips64el
llvm-doc-3.7.0-4.fc21.loongson.noarch
llvm-static-3.7.0-4.fc21.loongson.mips64el
llvm-devel-3.7.0-4.fc21.loongson.mips64el
llvm-debuginfo-3.7.0-4.fc21.loongson.mips64el
[root@localhost ~]# rpm -qa | grep clang
clang-analyzer-3.7.0-4.fc21.loongson.noarch
clang-3.7.0-4.fc21.loongson.mips64el
clang-libs-3.7.0-4.fc21.loongson.mips64el
clang-devel-3.7.0-4.fc21.loongson.mips64el
[root@localhost ~]# rpm -qa | grep mesa
mesa-libOpenCL-debuginfo-18.2.0~rc5-1.fc29.mips64el
mesa-libwayland-egl-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-vdpau-drivers-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libOSMesa-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libOpenCL-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libEGL-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-filesystem-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libGL-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-dri-drivers-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-debuginfo-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libGL-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libwayland-egl-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libglapi-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libgbm-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libEGL-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libOpenCL-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libGLU-9.0.0-7.fc21.loongson.mips64el
mesa-libgbm-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libOSMesa-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libGLES-11.1.0-5.20151218.fc21.loongson.6.mips64el
mesa-libGLES-devel-11.1.0-5.20151218.fc21.loongson.6.mips64el
[root@localhost ~]# rpm -qa | grep libclc
libclc-devel-0.0.1-11.20150918git4346c30.fc21.loongson.mips64el
libclc-0.0.1-11.20150918git4346c30.fc21.loongson.mips64el
[root@localhost ~]# rpm -qa | grep ocl-icd
ocl-icd-devel-2.2.7-2.git20150606.ebbc4c1.fc21.loongson.mips64el
ocl-icd-debuginfo-2.2.7-2.git20150606.ebbc4c1.fc21.loongson.mips64el
ocl-icd-2.2.7-2.git20150606.ebbc4c1.fc21.loongson.mips64el
Graphics card related information
[loongson@localhost ~]$ lspci -vnn |grep VGA
Flags: bus master, VGA palette snoop, 66MHz, medium devsel, latency 64
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc.
[AMD/ATI] Caicos XT [Radeon HD 7470/8470 / R5 235 OEM] [1002:6778] (prog-if 00 [VGA controller])