Objet : Developers list for StarPU
Archives de la liste
- From: Samuel Thibault <samuel.thibault@ens-lyon.org>
- To: Bogdan Manciu <bogdan.manciu@movidius.com>
- Cc: Alin Dobre <alin.dobre@movidius.com>, Brendan Barry <brendan.barry@movidius.com>, starpu-devel@lists.gforge.inria.fr, David Nicholls <david.nicholls@movidius.com>
- Subject: Re: [Starpu-devel] starpu opencl app
- Date: Fri, 19 Oct 2012 16:58:11 +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,
Bogdan Manciu, le Fri 19 Oct 2012 17:11:34 +0300, a écrit :
> it segfaults on starpu_opencl_load_kernel( refocusing_starpu.c line 127 )
> and I can't figure out why/what to do about it.
Program received signal SIGSEGV, Segmentation fault.
__strcpy_ssse3 () at ../sysdeps/x86_64/multiarch/strcpy.S:94
94 ../sysdeps/x86_64/multiarch/strcpy.S: Aucun fichier ou dossier de ce
type.
(gdb) bt
#0 __strcpy_ssse3 () at ../sysdeps/x86_64/multiarch/strcpy.S:94
#1 0x00007ffff7b69d6b in _starpu_opencl_compile_or_load_opencl_from_file
(source_file_name=0x405fef "refocusing_opencl_kernel.cl",
opencl_programs=0x632c60, build_options=0x0) at
drivers/opencl/driver_opencl_utils.c:371
#2 0x00000000004048d5 in refocusing_starpu (h_dst=0x677220,
h_src=0x7ffff7fc4010, ld=230, width=230, height=230, depth=6, xoffset=0,
yoffset=0, verbose=0) at refocusing_starpu.c:247
#3 0x0000000000402bfa in main (argc=1, argv=0x7fffffffdc58) at main.c:99
(gdb) up
#1 0x00007ffff7b69d6b in _starpu_opencl_compile_or_load_opencl_from_file
(source_file_name=0x405fef "refocusing_opencl_kernel.cl",
opencl_programs=0x632c60, build_options=0x0) at
drivers/opencl/driver_opencl_utils.c:371
371 strcpy(new_build_options, build_options);
(gdb) p build_options
$1 = 0x0
so it seems it is simply because you pass NULL for build_options.
Putting "" there makes it go further. I guess we could handle NULL as
being "".
Now it fails further away:
oops in refocusing_opencl_codelet (refocusing_starpu.c:146) ((null)) ...
<Invalid value> (-30)
refocusing: /usr/local/stow/starpu/include/starpu/1.0/starpu_opencl.h:43:
starpu_opencl_report_error: Assertion `0' failed.
This is
err = clEnqueueWriteImage(queue, d_tex, CL_TRUE, origin, region,
width*sizeof(float), 0, (void *) d_src, 0, NULL, NULL);
if (err != CL_SUCCESS) STARPU_OPENCL_REPORT_ERROR(err);
I don't see anything obviously wrong here, but I don't know
clEnqueueWriteImage very much.
Samuel
- [Starpu-devel] starpu opencl app, Bogdan Manciu, 19/10/2012
- Re: [Starpu-devel] starpu opencl app, Samuel Thibault, 19/10/2012
- Re: [Starpu-devel] starpu opencl app, Cyril Roelandt, 19/10/2012
- Re: [Starpu-devel] starpu opencl app, Cyril Roelandt, 19/10/2012
- Re: [Starpu-devel] starpu opencl app, Cyril Roelandt, 19/10/2012
- Re: [Starpu-devel] starpu opencl app, Bogdan Manciu, 22/10/2012
- Re: [Starpu-devel] starpu opencl app, Samuel Thibault, 19/10/2012
Archives gérées par MHonArc 2.6.19+.