MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / l_write_read

Function l_write_read

test_conformance/basic/test_progvar.cpp:1109–1126  ·  view source on GitHub ↗

Check write-then-read.

Source from the content-addressed store, hash-verified

1107
1108// Check write-then-read.
1109static 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
1128static int l_write_read_for_type(cl_device_id device, cl_context context,
1129 cl_command_queue queue, const TypeInfo& ti,

Callers 1

test_progvar.cppFile · 0.85

Calls 1

l_write_read_for_typeFunction · 0.85

Tested by

no test coverage detected