Objet : Developers list for StarPU
Archives de la liste
- From: Thilo Kogge <thilo@kogge.net>
- To: Nathalie Furmento <nathalie.furmento@labri.fr>, "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
- Subject: Re: [Starpu-devel] StarPU
- Date: Wed, 25 Jun 2014 18:43:29 +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, I tried to compile source-code of one of your basic examples. My code is: #include <starpu.h> void cpu_func(void *buffers[], void *cl_arg) { printf("Hello world\n"); } struct starpu_codelet cl = { .cpu_funcs = { cpu_func, NULL }, .nbuffers = 0 }; int main(int argc, char **argv) { /* initialize StarPU */ starpu_init(NULL); struct starpu_task *task = starpu_task_create(); task->cl = &cl; /* Pointer to the codelet defined above */ /* starpu_task_submit will be a blocking call. If unset, starpu_task_wait() needs to be called after submitting the task. */ task->synchronous = 1; /* submit the task to StarPU */ starpu_task_submit(task); /* terminate StarPU */ starpu_shutdown(); return 0; } I was not able to install the gcc extension on my machine so I tried to compile the code with: gcc `pkg-config --cflags libstarpu` `pkg-config --libs libstarpu` hello_world.c -o hello_world The output is: In file included from /home/user/starpu-install/include/starpu/1.1/starpu.h:137:0, from hello_world.c:1: /home/user/starpu-install/include/starpu/1.1/starpu_deprecated_api.h:27:2: warning: #warning Your application is using deprecated types. You may want to update to use the latest API, by using tools/dev/rename.sh. [-Wcpp] hello_world.c: In function ‘main’: hello_world.c:19:12: warning: ignoring return value of ‘starpu_init’, declared with attribute warn_unused_result [-Wunused-result] hello_world.c:26:19: warning: ignoring return value of ‘starpu_task_submit’, declared with attribute warn_unused_result [-Wunused-result] /tmp/ccn1qMDi.o: In function `main': hello_world.c:(.text+0x31): undefined reference to `starpu_init' hello_world.c:(.text+0x36): undefined reference to `starpu_task_create' hello_world.c:(.text+0x5f): undefined reference to `starpu_task_submit' hello_world.c:(.text+0x64): undefined reference to `starpu_shutdown' collect2: ld returned 1 exit status And here the pkg config outputs: user@machine:~/starpu/test$ pkg-config --cflags libstarpu -DSTARPU_USE_DEPRECATED_API -DSTARPU_USE_DEPRECATED_ONE_ZERO_API -I/home/user/starpu-install/include/starpu/1.1 -I/usr/local/cuda/include -I/home/user/hwloc-install/include -I/usr/include/libxml2 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 . For now I'm not sure if it's a problem with my starpu installation or my compiler command, or if misunderstood the manual. It looks like if the examples are made for plugin-support. Thanks for your help Thilo Kogge |
- [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+.