cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

DBalakshin
Journeyman III

Can't use double2 kernel argument

Hello!

The example kernel is supposed to work on CPU. When trying to set its argument via

clSetKernelArg(kernel, 0, sizeof(cl_double2), &value);

I get CL_INVALID_ARG_INDEX error. When I change type to 'double', everything runs perfect.

This behavior is observed with SDK 2.1 on both Windows7 and linux 64bit.

#pragma OPENCL EXTENSION cl_amd_fp64: enable __kernel void bug(double2 arg) { uint i = get_global_id(0); }

0 Likes
1 Reply

This should be fixed in the next release as I reported the same issue a while back.

Thanks,

Jeff

0 Likes