alexaverbuch

Accessing cl_uint4 elements?

Discussion created by alexaverbuch on Sep 21, 2009
Latest reply on Sep 22, 2009 by alexaverbuch
Trying to individually access cl_uint4 elements in Host program

Hi,

I've been reading the OpenCL spec and it only seems to show how to access individual vector elements when in the kernel code, but not within the host. Is this even possible?

I've had multiple syntax attempts with no success. Please see the attached code for reference.

Thank in advance for any help,

Alex

cl_uint4 test = {1,2,3,4}; test.0; test.x; test[0];

Outcomes