Objet : Developers list for StarPU
Archives de la liste
- From: ASD D <ajitsdeshpande@gmail.com>
- To: Cyril Roelandt <cyril.roelandt@inria.fr>
- Cc: starpu-devel@lists.gforge.inria.fr
- Subject: Re: [Starpu-devel] Re : How to add own example code to build using Starpu
- Date: Tue, 1 Nov 2011 22:32:47 +0000
- 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 Cyril,
Will do the changes in Makefile.am and try. And let know the result.
thank you.
-AD
On Tue, Nov 1, 2011 at 6:01 PM, Cyril Roelandt <cyril.roelandt@inria.fr> wrote:
----- ASD D <ajitsdeshpande@gmail.com> a écrit :
> Hello,
> I am using Starpu basic examples from starpu repository folder
> examples/basic_examples.
> I want to have own openCL based example, built and executed under Starpu. I
> copied my example source files (my_example_main.c,
> my_example_opencl_kernel.cl, my_example_opencl.c) to this basic_examples
> folder.
> And then did
> ./auotgen.sh.
> ./configure --with-opencl-include-dir=openCLPath
> --with-opencl-lib-dir=openCLLibPath--enable-debug --enable-verbose
> make
> But after make, when i checked the folder basic_examples , I do not see any
> executable for my exampled code there. Why so?
>
You need to edit examples/Makefile.am so that your example can be compiled. It is quite easy, you can juste copy/paste an already existing example and then adapt it to your needs. In your case, the code would look something like that :
check_PROGRAMS += \
basic_examples/my_example
examplebin_PROGRAMS += \
basic_examples/my_example
basic_examples_vector_scal_SOURCES = \
basic_examples/my_example_main.c
if STARPU_USE_OPENCL
basic_examples_vector_scal_SOURCES += \
basic_examples/my_example_opencl.c
endif
Cyril.
> 1] What process is to be followed to build ones own opencl code udner
> starpu?
>
> thanks,
> -AD.
- Re: [Starpu-devel] Re : How to add own example code to build using Starpu, ASD D, 01/11/2011
Archives gérées par MHonArc 2.6.19+.