[PyOpenCL] Learning OpenCL through PyOpenCL
Andreas Kloeckner
lists at informa.tiker.net
Thu Feb 24 08:12:05 PST 2011
Hi Patric,
On Mon, 21 Feb 2011 21:21:11 +0100, Patric Holmvall <patric.hol at gmail.com> wrote:
> Thank you Andreas and Keith!
> I think I just have a hard time getting my head around how I should
> set up my workgroup size/local size, thread strides and so on, but
> I'll get around it eventually I guess.
>
> Another topic:
> The basic examples covers how to do operations on vectors. I'm trying
> to increase the dimensions and want to do operations on a matrix/array
> of lets say Nx6 elements.
>
> 1. Is there anything wrong with the following approach? (syntax? am I
> "thinking wrong" when passing arrays like this to the kernel?)
> 2. How can I split the other dimension between threads and workgroups
> in an optimal way (like x[gid_1][gid_2] for example)? Example code
> would be very appreachiated.
> 3. I suspect that I have a syntax error in the OpenCL code when
> accessing elements, like x[gid][2] for example. What is the correct
> syntax?
Can you please run your code and say what error message you're getting?
Thanks,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20110224/fd5e6282/attachment.pgp>
More information about the PyOpenCL
mailing list