Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] starpu opencl app

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] starpu opencl app


Chronologique Discussions 
  • From: Bogdan Manciu <bogdan.manciu@movidius.com>
  • To: starpu-devel@lists.gforge.inria.fr
  • Cc: Alin Dobre <alin.dobre@movidius.com>, David Nicholls <david.nicholls@movidius.com>
  • Subject: Re: [Starpu-devel] starpu opencl app
  • Date: Mon, 22 Oct 2012 18:44:32 +0300
  • 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>

So,
I've had several suggestions coming back:
- Samuel Thibault <samuel.thibault@ens-lyon.org> suggested "" instead of NULL for the final argument of starpu_opencl_load_opencl_from_file
  this fixes the reported segfault

Next it crashes in clEnqueueWriteImage.
Cyril Roelandt <cyril.roelandt@inria.fr>
suggested a patch to replace
    err = clEnqueueWriteImage(queue, d_tex, CL_TRUE,  origin, region, width*sizeof(float), 0, (void *) d_src, 0, NULL, NULL);
with
    err = clEnqueueCopyBufferToImage(queue, d_src, d_tex, 0, origin, region, 0, NULL, NULL);

This does work however I would really like to keep WriteImage as this isn't my code.

I also got some profiling related suggestions from the same patch that got implemented.

So please, if anybody can give me some pointers how to properly call clEnqueueWriteImage with starpu buffers( STARPU_MATRIX_GET_PTR or alternatives).
Thanks

On 19.10.2012 17:11, Bogdan Manciu wrote:
50815F96.8030105@movidius.com"> Hi,
I have an app that I just can't seem to debug.
The attached app does some OpenCL computation, and does work without the starpu wrapper code.
However in the current attached version( it's automake so it can be configured for starpu+cuda too and that works)
it segfaults on starpu_opencl_load_kernel( refocusing_starpu.c line 127 ) and I can't figure out why/what to do about it.

I'm sure I'm just doing something silly and properly doing XYZ it will start working.

Any help would be appreciated.
Thanks
--

Bogdan Manciu
Systems

--

Bogdan Manciu
Systems

Attachment: jpgiLPjxEcNo7.jpg
Description: JPEG image

JPEG image




Archives gérées par MHonArc 2.6.19+.

Haut de le page