Changes between Version 7 and Version 8 of OpenCLTransformation


Ignore:
Timestamp:
06/27/14 14:57:08 (12 years ago)
Author:
fuufusuu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenCLTransformation

    v7 v8  
    77This function in openCL will query for devices then put their ID into the pointer &device_id. In the transformation it puts in arbitrary numbers for ID.
    88
    9 This only takes up the 3rd and 4th parameter, the 3rd for the number of devices, but also uses the name of the pointer in the 4th place.
     9This only takes up the 3rd and 4th parameter, the 3rd for the number of devices, but also uses the name of the pointer in the 4th place. Note that the part for picking a device actually comes from clCreateCommandQueue, and if multiple devices are not used then the device at index 0 is used
    1010{{{
    1111int device_id[NUM_DEVICES];
     
    3939err |= clSetKernelArg(kernel, 2, sizeof(unsigned int), &count);
    4040
    41 clSetKernelArg sets arguments for an array of each device in the kernel. Note that the part for picking a device actually comes from clCreateCommandQueue.
     41clSetKernelArg sets arguments for an array of each device in the kernel.
    4242{{{
    4343  $assert(global%local == 0);