Objet : Developers list for StarPU
Archives de la liste
- From: Samuel Thibault <samuel.thibault@ens-lyon.org>
- To: Thilo Kogge <thilo@kogge.net>
- Cc: "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
- Subject: Re: [Starpu-devel] StarPU
- Date: Thu, 26 Jun 2014 11:49:53 +0200
- 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>
Hello,
Thilo Kogge, le Wed 25 Jun 2014 18:43:29 +0200, a écrit :
> I was not able to install the gcc extension on my machine
This is not a problem here, the example program you took doesn't use any
language extension.
> gcc `pkg-config --cflags libstarpu` `pkg-config --libs libstarpu`
> hello_world.c -o hello_world
[...]
> hello_world.c:(.text+0x31): undefined reference to `starpu_init'
[...]
> user@machine:~/starpu/test$ pkg-config --libs libstarpu
> -L/home/user/starpu-install/lib -L/usr/local/cuda/lib64 -L/home/user/
> hwloc-install/lib -lstarpu-1.1 -lcudart -lcublas -lcuda -lstdc++ -lOpenCL
> -lhwloc
Well, I don't see how it could ever happen that starpu_init is missing
while -lstarpu-1.1 is passed, as libstarpu always contains the
starpu_init function. Could you make sure that nothing odd is happening
by calling both
gcc `pkg-config --cflags libstarpu` `pkg-config --libs libstarpu`
hello_world.c -o hello_world
echo `pkg-config --cflags libstarpu` `pkg-config --libs libstarpu`
hello_world.c -o hello_world
in the same shell, and check that the echo output contains -lstarpu-1.1
Also, perhaps for some reason your linking toolchain prefers -l flags to
be appended after C files using their symbols, i.e. rather this:
gcc hello_world.c -o hello_world `pkg-config --cflags libstarpu` `pkg-config
--libs libstarpu`
echo `pkg-config --cflags libstarpu` `pkg-config --libs libstarpu`
hello_world.c -o hello_world
> It looks like if the examples are made for plugin-support.
No, only examples inside the gcc-plugin directory are made for plugin
support.
Samuel
- [Starpu-devel] StarPU, Thilo Kogge, 19/06/2014
- Re: [Starpu-devel] StarPU, Nathalie Furmento, 19/06/2014
- <Suite(s) possible(s)>
- [Starpu-devel] StarPU, Thilo Kogge, 20/06/2014
- Re: [Starpu-devel] StarPU, Nathalie Furmento, 23/06/2014
- Message indisponible
- Re: [Starpu-devel] StarPU, Nathalie Furmento, 23/06/2014
- Re: [Starpu-devel] StarPU, Thilo Kogge, 25/06/2014
- Re: [Starpu-devel] StarPU, Samuel Thibault, 26/06/2014
- Re: [Starpu-devel] StarPU, Thilo Kogge, 26/06/2014
- Re: [Starpu-devel] StarPU, Samuel Thibault, 26/06/2014
- Re: [Starpu-devel] StarPU, Thilo Kogge, 27/06/2014
- Re: [Starpu-devel] StarPU, Samuel Thibault, 26/06/2014
- Re: [Starpu-devel] StarPU, Thilo Kogge, 25/06/2014
- Re: [Starpu-devel] StarPU, Nathalie Furmento, 23/06/2014
- Message indisponible
- Re: [Starpu-devel] StarPU, Nathalie Furmento, 23/06/2014
Archives gérées par MHonArc 2.6.19+.