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

Function isMatrixInImage

src/library/blas/generic/solution_seq.c:212–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212bool VISIBILITY_HIDDEN
213isMatrixInImage(
214 MemoryPattern *pattern,
215 MatrixRole mrole)
216{
217 const CLBLASMpatExtra *extra = (const CLBLASMpatExtra*)pattern->extra;
218 bool ret = false;
219
220 if (extra != NULL) {
221 switch (mrole) {
222 case MATRIX_A:
223 ret = (extra->mobjA == CLMEM_IMAGE);
224 break;
225 case MATRIX_B:
226 ret = (extra->mobjB == CLMEM_IMAGE);
227 break;
228 default:
229 break;
230 }
231 }
232
233 return ret;
234}
235
236void VISIBILITY_HIDDEN
237releaseStepImgs(SolutionStep *step)

Callers 5

makeSolutionSeqFunction · 0.85
legacySelectPatternFunction · 0.85
getStepResourcesFunction · 0.85
executeImageStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected