MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / fullKernelSize

Function fullKernelSize

src/library/common/kern_cache.c:415–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415size_t
416fullKernelSize(Kernel *kern)
417{
418 size_t allSizes[MAX_OPENCL_DEVICES], size = 0;
419 size_t i, retSize;
420
421 clGetProgramInfo(kern->program, CL_PROGRAM_BINARY_SIZES,
422 sizeof(allSizes), &allSizes, &retSize);
423 retSize /= sizeof(size);
424 for (i = 0; i < retSize; i++) {
425 size += allSizes[i];
426 }
427
428 if (!kern->noSource) {
429 clGetProgramInfo(kern->program, CL_PROGRAM_SOURCE, 0, NULL, &retSize);
430 }
431
432 return (size + retSize + sizeof(Kernel) + kern->extraSize);
433}
434
435#if defined(TRACE_MALLOC)
436

Callers 2

removeKernelsFunction · 0.85
addKernelToCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected