Check write-then-read.
| 1107 | |
| 1108 | // Check write-then-read. |
| 1109 | static int l_write_read(cl_device_id device, cl_context context, |
| 1110 | cl_command_queue queue) |
| 1111 | { |
| 1112 | int status = CL_SUCCESS; |
| 1113 | int itype; |
| 1114 | |
| 1115 | RandomSeed rand_state(gRandomSeed); |
| 1116 | |
| 1117 | for (itype = 0; itype < num_type_info; itype++) |
| 1118 | { |
| 1119 | status = status |
| 1120 | | l_write_read_for_type(device, context, queue, type_info[itype], |
| 1121 | rand_state); |
| 1122 | FLUSH; |
| 1123 | } |
| 1124 | |
| 1125 | return status; |
| 1126 | } |
| 1127 | |
| 1128 | static int l_write_read_for_type(cl_device_id device, cl_context context, |
| 1129 | cl_command_queue queue, const TypeInfo& ti, |
no test coverage detected