Accéder au contenu.
Menu Sympa

starpu-devel - [Starpu-devel] Segmentation fault when I try to execute the basic example Vector Scale using OpenCL kernel.

Objet : Developers list for StarPU

Archives de la liste

[Starpu-devel] Segmentation fault when I try to execute the basic example Vector Scale using OpenCL kernel.


Chronologique Discussions 
  • From: ASD D <ajitsdeshpande@gmail.com>
  • To: starpu-devel@lists.gforge.inria.fr
  • Subject: [Starpu-devel] Segmentation fault when I try to execute the basic example Vector Scale using OpenCL kernel.
  • Date: Fri, 28 Oct 2011 14:44:59 +0100
  • 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 have built Starpu on Linux Ubuntu-10.04 with OpenCL library. gcc version is - 4.4.3. I guess binutils version is GNU ld (GNU Binutils for Ubuntu) 2.20.1-system.20100303

Steps I follow are as below :

1] ./autogen.sh
2]
./configure --with-opencl-include-dir=openCLPath --with-opencl-lib-dir=openCLLibPath--enable-debug --enable-verbose
where
openCLPath & openCLLibPath is correct path on my system
3] make

4] When I execute this example - Vector_scale using STARPU_NCPUS=0 ./examples/basic_examples/vector_scal

It crashes giving Segmentation Fault. Error message –

[starpu][starpu_opencl_load_kernel] Program not available

oops in scal_opencl_func (basic_examples/vector_scal_opencl.c:46) ... <Invalid program> (-44)

clSetKernelArg called...

clSetKernelArg called...

clSetKernelArg called...

oops in scal_opencl_func (basic_examples/vector_scal_opencl.c:51) ... <Invalid kernel> (-48)

clEnqueueNDRangeKernel called...

oops in scal_opencl_func (basic_examples/vector_scal_opencl.c:66) ... <Invalid kernel> (-48)

clFinish called...

clReleaseEvent called...

Segmentation fault


Q-1 Any pointers about what I am doing wrong and solution to fix it would help.
Q-2 How to get this basic example configured, built without using openCL and using CPU worker alone?

Thank you
-AD.



Archives gérées par MHonArc 2.6.19+.

Haut de le page