Check initialization, then, read, then write, then read.
| 1319 | |
| 1320 | // Check initialization, then, read, then write, then read. |
| 1321 | static int l_init_write_read(cl_device_id device, cl_context context, |
| 1322 | cl_command_queue queue) |
| 1323 | { |
| 1324 | int status = CL_SUCCESS; |
| 1325 | int itype; |
| 1326 | |
| 1327 | RandomSeed rand_state(gRandomSeed); |
| 1328 | |
| 1329 | for (itype = 0; itype < num_type_info; itype++) |
| 1330 | { |
| 1331 | status = status |
| 1332 | | l_init_write_read_for_type(device, context, queue, |
| 1333 | type_info[itype], rand_state); |
| 1334 | } |
| 1335 | return status; |
| 1336 | } |
| 1337 | static int l_init_write_read_for_type(cl_device_id device, cl_context context, |
| 1338 | cl_command_queue queue, |
| 1339 | const TypeInfo& ti, |
no test coverage detected