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

Function allocKernel

src/library/common/kern_cache.c:179–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179Kernel
180*allocKernel(void)
181{
182 KernelNode *knode;
183
184 knode = malloc(sizeof(KernelNode));
185 if (knode == NULL) {
186 return NULL;
187 }
188
189 memset(knode, 0, sizeof(KernelNode));
190 knode->refcnt = 1;
191 knode->magic = KNODE_MAGIC;
192
193 return &knode->kern;
194}
195
196void
197getKernel(Kernel *kern)

Callers 3

loadKernelFunction · 0.85
makeKernelFunction · 0.85
testCacheFunction · 0.85

Calls

no outgoing calls

Tested by 1

testCacheFunction · 0.68