Changes between Version 7 and Version 8 of OpenCLTransformation
- Timestamp:
- 06/27/14 14:57:08 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenCLTransformation
v7 v8 7 7 This 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. 8 8 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. 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. 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 10 10 {{{ 11 11 int device_id[NUM_DEVICES]; … … 39 39 err |= clSetKernelArg(kernel, 2, sizeof(unsigned int), &count); 40 40 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.41 clSetKernelArg sets arguments for an array of each device in the kernel. 42 42 {{{ 43 43 $assert(global%local == 0);
