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

Function l_init_write_read

test_conformance/basic/test_progvar.cpp:1321–1336  ·  view source on GitHub ↗

Check initialization, then, read, then write, then read.

Source from the content-addressed store, hash-verified

1319
1320// Check initialization, then, read, then write, then read.
1321static 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}
1337static int l_init_write_read_for_type(cl_device_id device, cl_context context,
1338 cl_command_queue queue,
1339 const TypeInfo& ti,

Callers 1

test_progvar.cppFile · 0.85

Calls 1

Tested by

no test coverage detected