----- helper functions
| 84 | |
| 85 | //----- helper functions |
| 86 | static cl_uchar *generate_image( int n, MTdata d ) |
| 87 | { |
| 88 | cl_uchar *ptr = (cl_uchar *)malloc( n ); |
| 89 | int i; |
| 90 | |
| 91 | for( i = 0; i < n; i++ ) |
| 92 | ptr[i] = (cl_uchar)genrand_int32(d); |
| 93 | |
| 94 | return ptr; |
| 95 | } |
| 96 | |
| 97 | |
| 98 | static int copy_size( cl_device_id device, cl_context context, cl_command_queue queue, int num_elements, MTdata d ) |
no test coverage detected