Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] hwloc detection problem when configuring starpu-svn-trunk and starpu-1.2.0rc5

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] hwloc detection problem when configuring starpu-svn-trunk and starpu-1.2.0rc5


Chronologique Discussions 
  • From: Nathalie Furmento <nathalie.furmento@labri.fr>
  • To: Brice Goglin <Brice.Goglin@inria.fr>, schnorr@inf.ufrgs.br
  • Cc: starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] hwloc detection problem when configuring starpu-svn-trunk and starpu-1.2.0rc5
  • Date: Thu, 18 Aug 2016 14:17:23 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=nathalie.furmento@labri.fr; spf=None smtp.mailfrom=nathalie.furmento@labri.fr; spf=None smtp.helo=postmaster@v-zimmta02.u-bordeaux.fr
  • Ironport-phdr: 9a23:LGu88BbT84c/u9bcVNi8gCP/LSx+4OfEezUN459isYplN5qZpM6ybnLW6fgltlLVR4KTs6sC0LuP9fq8EjBQqdbZ6TZZIcQKD0dEwewt3CUYSPafDkP6KPO4JwcbJ+9lEGFfwnegLEJOE9z/bVCB6le77DoVBwmtfVEtfre9JIfegoyN2vyo/NWLOkMT1WP7O+85cEX+7V2I8JJH2c06cud54yCKi0MAQ/5Ry2JsKADbtDfHzeD0wqRe9T9Nsekq7c9KXPayVa05SbtFEGZuaDhtt4XD/CPORgqX53YaTn5e0l8RW1CEv1nGWcLbqCrxu6JS3yaePMu+GZouWD+vqYhsRxvpjg8GMSQ4+SfZkJo0xLlQoBSmvQZXwojaJpybLvVlOKnHLv0AQm8UeM9NVyVFA470QZYVCucHIeEQ+4/0u1sHqRqzQwexHubizCNPrnv/17c7leo7R1KVlDc8Fs4D5SyH5O7+M70fBKXslPHF
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Lucas,

I fixed StarPU (svn trunk and branch 1.2) to always use pkg-config when
detecting hwloc availability. But as Brice said, this should not fix
your problem. It's likely you need to add in your LD_LIBRARY_PATH the
path to the OpenCL library.

Cheers,

Nathalie

Le 18/08/2016 à 11:55, Brice Goglin a écrit :
> Le 18/08/2016 05:21, Lucas M. Schnorr a écrit :
>> Hello Nathalie,
>>
>> On 08/18/2016 01:55 AM, Nathalie Furmento wrote:
>>> Ok, it seems that hwloc has been compiled with OpenCL. Here the error
>>> when configure checks the availability of the hwloc library.
>>>
>>> configure:35295: /home/lschnorr/spack-orion/lib/spack/env/gcc/gcc -o
>>> conftest -O3 -g -O2 -gdwarf-2 -g3 -D_GNU_SOURCE
>>> -I/home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/include
>>>
>>> -gdwarf-2 -g3
>>> -L/home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib
>>> conftest.c -lhwloc -lrt -lm -lpthread >&5
>>> /home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib/libhwloc.so:
>>> undefined reference to `clGetPlatformIDs@OPENCL_1.0'
>>> /home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib/libhwloc.so:
>>> undefined reference to `clGetDeviceIDs@OPENCL_1.0'
>>> /home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib/libhwloc.so:
>>> undefined reference to `clGetPlatformInfo@OPENCL_1.0'
>>> /home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib/libhwloc.so:
>>> undefined reference to `clGetDeviceInfo@OPENCL_1.0'
>>>
>>> The dirty fix would be to modify configure.ac and add the proper -l
>>> and -L options for OpenCL. Or better, set LDFLAGS with the
>>> appropriate value.
>>>
>>> A better way would be to use pkgconfig to get the correct flags to
>>> use when compiling/linking with hwloc. Could you please send me the
>>> contents of the file
>>> /home/lschnorr/spack-orion/opt/spack/linux-x86_64/gcc-6.1.0/hwloc-1.11.3-j3wlufl4afo5kvid3vv4rutn55ljz2nx/lib/pkgconfig/hwloc.pc
>>>
>> Sure, here it goes (hwloc.pc).
>>
>> Let me know (on which version/trunk) when it is done so I can test again.
> Hello
>
> You're not supposed to add -lOpenCL since it's private to hwloc, your
> program does not use OpenCL directly. Just linking with -lhwloc should
> be enough as long as the linker finds the OpenCL library in the back
> (same for libnuma).
>
> So the question is whether your linker didn't auto-add libOpenCL.so
> (why? "objdump -x /path/to/libhwloc.so | grep NEEDED" should show
> libOpenCL.so, and "ldd /path/to/libhwloc.so" should find libOpenCL too)
> or whether it tries to add it but failed to find libOpenCL.so (it is
> installed in a standard directory? need LIBRARY_PATH and LD_LIBRARY_PATH?).
>
> I get the same errors when I move libOpenCL to another location, but ld
> first complains "libOpenCL.so.1, needed by libhwloc.so, not found". Your
> linker did not complain the same.
>
> Brice
>
> _______________________________________________
> Starpu-devel mailing list
> Starpu-devel@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/mailman/listinfo/starpu-devel






Archives gérées par MHonArc 2.6.19+.

Haut de le page