Hello Michal,

Thank you so much for your help. Installing the latest version with latest
pocl1.3 and llvm6, I am able to run in without any error.

Thanks and regards,
Srijeeta

On Sat, Sep 22, 2018 at 11:33 PM Michal Babej <[email protected]> wrote:

> Hello,
>
>
> Do I need to initialize something or build the pocl in a specific manner.
>
>
> No, you don't need to do anything special with pocl. This problem is in
> fact not in pocl; the problem is that you have linked pocl against two
> different versions of libstdc++ (the standard C++ library). This usually
> happens when you compile pocl against LLVM downloaded from llvm.org,
> instead of using LLVM from your linux's package manager.
>
>
> There is a README.ARM file in pocl, i'm going to copypaste a part of it
> here:
>
>
> * get a clang / llvm. DO NOT use the ones downloaded from llvm.org, they
> only work on the distro where they were compiled. Ubuntu LTS these days
> ships multiple llvm versions even quite recent ones; get the clang+llvm
> from your distro's packages.
>
>
> For best experience on XU4, i recommend you use the Ubuntu 18.04 image
> from hardkernel, and then install clang+llvm 6 from the ubuntu
> repositories: "apt install llvm-6.0-dev llvm-6.0 clang-6.0
> libclang-6.0-dev"
>
>
> If you want to use a different distribution, then you must install LLVM
> via their package manager, or compile it yourself (it's possible on XU4,
> but you may need to setup swap :)
>
>
> Regards,
>
>   -- mb
> ------------------------------
> *From:* Srijeeta Maity <[email protected]>
> *Sent:* Saturday, September 22, 2018 9:11:43 AM
> *To:* [email protected]
> *Subject:* [pocl-devel] (no subject)
>
> Hello,
>
> I am trying to install pocl in Odroid-XU4 board. But After the
> installation when I am trying to run any opencl program I am getting
> segmentation fault. I am sharing the gdb error message -
>
> Starting program: /usr/bin/clinfo
>
> Cannot parse expression `.L1207 4@r4'.
>
> warning: Probes-based dynamic linker interface failed.
>
> Reverting to original interface.
>
>
> [Thread debugging using libthread_db enabled]
>
> Using host libthread_db library
> "/lib/arm-linux-gnueabihf/libthread_db.so.1".
>
> Number of platforms                               1
>
>   Platform Name                                   Portable Computing
> Language
>
>   Platform Vendor                                 The pocl project
>
>   Platform Version                                OpenCL 1.2 pocl 1.3-pre
> RelWithDebInfo, LLVM 3.8.0, SLEEF, POCL_DEBUG, FP16
>
>   Platform Profile                                FULL_PROFILE
>
>   Platform Extensions                             cl_khr_icd
>
>   Platform Extensions function suffix             POCL
>
>
> Program received signal SIGSEGV, Segmentation fault.
>
> 0xb55469f6 in std::error_category::equivalent(int, std::error_condition
> const&) const () from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
>
> (gdb) bt
>
> #0  0xb55469f6 in std::error_category::equivalent(int,
> std::error_condition const&) const () from
> /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
>
> #1  0xb5565d00 in std::error_code::default_error_condition() const ()
>
>    from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6
>
> #2  0xb599c38a in pocl_mkdir_p (
>
>     path=path@entry=0xb6e8623c <cache_topdir>
> "/home/odroid/.cache/pocl/kcache") at
> /home/odroid/Tools/pocl-master/lib/llvmopencl/LLVMFileUtils.cc:144
>
> #3  0xb598a1ca in pocl_cache_init_topdir ()
>
>     at /home/odroid/Tools/pocl-master/lib/CL/pocl_cache.c:538
>
> #4  0xb598a998 in pocl_init_devices ()
>
>     at /home/odroid/Tools/pocl-master/lib/CL/devices/devices.c:466
>
> #5  0xb597740c in POclGetDeviceIDs (platform=0xb6e84c4c <_platforms>,
>
>     device_type=<optimized out>, num_entries=0, devices=0x0,
>
>     num_devices=0x423978)
>
>     at /home/odroid/Tools/pocl-master/lib/CL/clGetDeviceIDs.c:50
>
> #6  0x00407c78 in ?? ()
>
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
>
> I am stuck at this point for a long time. Do I need to initialize
> something or build the pocl in a specific manner. It will be great help if
> you can give some insights on it.
>
> Thanks and regards,
> Srijeeta
> _______________________________________________
> pocl-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pocl-devel
>
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to