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

Function CL_API_CALL CreateImage2D

opencl/tools/cltrace/cltrace.cpp:1343–1367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343static cl_mem CL_API_CALL CreateImage2D(cl_context context, cl_mem_flags flags,
1344 const cl_image_format* image_format, size_t image_width,
1345 size_t image_height, size_t image_row_pitch, void* host_ptr,
1346 cl_int* errcode_ret) {
1347 std::ostringstream ss;
1348 Rec r(&ss);
1349
1350 ss << "clCreateImage2D(" << context << ',';
1351 ss << getMemFlagsString(flags) << ',';
1352 ss << getImageFormatsString(image_format, 1) << ',';
1353 ss << image_width << ',' << image_height << ',' << image_row_pitch << ',';
1354 ss << host_ptr << ',';
1355
1356 addRec(&r);
1357 cl_mem ret =
1358 original_dispatch.CreateImage2D(context, flags, image_format, image_width, image_height,
1359 image_row_pitch, host_ptr, errcode_ret);
1360 delRec(&r);
1361
1362 ss << getErrorString(errcode_ret) << ") = " << ret;
1363
1364 ss << std::endl;
1365 std::cerr << ss.str();
1366 return ret;
1367}
1368
1369
1370static cl_mem CL_API_CALL CreateImage3D(cl_context context, cl_mem_flags flags,

Callers

nothing calls this directly

Calls 5

getMemFlagsStringFunction · 0.85
getImageFormatsStringFunction · 0.85
addRecFunction · 0.85
delRecFunction · 0.85
getErrorStringFunction · 0.85

Tested by

no test coverage detected