MCPcopy Create free account
hub / github.com/ROCm/clr / CL_API_CALL SetCommandQueueProperty

Function CL_API_CALL SetCommandQueueProperty

opencl/tools/cltrace/cltrace.cpp:1278–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278static cl_int CL_API_CALL SetCommandQueueProperty(cl_command_queue command_queue,
1279 cl_command_queue_properties properties,
1280 cl_bool enable,
1281 cl_command_queue_properties* old_properties) {
1282 std::ostringstream ss;
1283 Rec r(&ss);
1284
1285 ss << "clSetCommandQueueProperty(" << command_queue << ',';
1286 ss << getCommandQueuePropertyString(properties) << ',';
1287 ss << enable << ',';
1288
1289 addRec(&r);
1290 cl_int ret =
1291 original_dispatch.SetCommandQueueProperty(command_queue, properties, enable, old_properties);
1292 delRec(&r);
1293
1294 ss << getHexString(old_properties) << ") = ";
1295 ss << getErrorString(ret);
1296
1297 ss << std::endl;
1298 std::cerr << ss.str();
1299 return ret;
1300}
1301
1302static cl_mem CL_API_CALL CreateBuffer(cl_context context, cl_mem_flags flags, size_t size,
1303 void* host_ptr, cl_int* errcode_ret) {

Callers

nothing calls this directly

Calls 5

addRecFunction · 0.85
delRecFunction · 0.85
getHexStringFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected