1 Reply Latest reply on Jul 20, 2010 4:21 PM by jeff_golds

    Can't use double2 kernel argument

    DBalakshin

      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); }