/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 33 #define REDUCE_ALOGV(mtls, level, ...) do { if ((mtls)->logReduce >= (level)) ALOGV(__VA_ARGS__); } while(0) 148 MTLaunchStructCommon *mtls = (MTLaunchStructCommon *)data; local 149 if (mtls && mtls->dimPtr->y <= 1 && mtls->end.x <= mtls->start.x + mtls->mSliceSize) { 327 // mtls - The MTLaunchStruct holding information about the kernel launch 330 static inline void FepPtrSetup(const MTLaunchStructForEach *mtls, RsExpandKernelDriverInf argument 355 RedpPtrSetup(const MTLaunchStructReduce *mtls, RsExpandKernelDriverInfo *redp, uint32_t x, uint32_t y, uint32_t z) argument 375 SelectOuterSlice(const MTLaunchStructCommon *mtls, RsExpandKernelDriverInfo* info, uint32_t sliceNum) argument 387 SelectZSlice(const MTLaunchStructCommon *mtls, RsExpandKernelDriverInfo* info, uint32_t sliceNum) argument 392 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 419 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 444 MTLaunchStructForEach *mtls = (MTLaunchStructForEach *)usr; local 509 reduce_get_accumulator(uint8_t *&accumPtr, const MTLaunchStructReduce *mtls, const char *walkerName, uint32_t threadIdx) argument 534 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 573 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 612 const MTLaunchStructReduce *mtls = (const MTLaunchStructReduce *)usr; local 651 launchReduce(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 668 launchReduceSerial(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 715 launchReduceParallel(const Allocation ** ains, uint32_t inLen, Allocation * aout, MTLaunchStructReduce *mtls) argument 826 launchForEach(const Allocation ** ains, uint32_t inLen, Allocation* aout, const RsScriptCall* sc, MTLaunchStructForEach* mtls) argument [all...] |
H A D | rsCpuIntrinsic.cpp | 96 MTLaunchStructForEach mtls; local 100 if (forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls)) { 101 mtls.script = this; 102 mtls.fep.slot = slot; 104 mtls.kernel = mRootPtr; 105 mtls.fep.usr = this; 108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); 115 void RsdCpuScriptIntrinsic::forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls) { argument 117 mtls->script = this; 118 mtls [all...] |
H A D | rsCpuScript.cpp | 514 // dimensions into the mtls start/end fields. 522 bool RsdCpuScriptImpl::setUpMtlsDimensions(MTLaunchStructCommon *mtls, argument 525 rsAssert(mtls); 529 mtls->end.DIM_FIELD = baseDim.DIM_FIELD; \ 531 mtls->start.DIM_FIELD = \ 533 mtls->end.DIM_FIELD = \ 535 if (mtls->start.DIM_FIELD >= mtls->end.DIM_FIELD) { \ 558 MTLaunchStructReduce *mtls) { 560 memset(mtls, 554 reduceMtlsSetup(const Allocation ** ains, uint32_t inLen, const Allocation * aout, const RsScriptCall *sc, MTLaunchStructReduce *mtls) argument 625 forEachMtlsSetup(const Allocation ** ains, uint32_t inLen, Allocation * aout, const void * usr, uint32_t usrLen, const RsScriptCall *sc, MTLaunchStructForEach *mtls) argument 753 MTLaunchStructForEach mtls; local 768 MTLaunchStructReduce mtls; local 778 forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls) argument 785 reduceKernelSetup(uint32_t slot, MTLaunchStructReduce *mtls) argument [all...] |
H A D | rsCpuScriptGroup.cpp | 204 MTLaunchStructForEach mtls; local 224 bool launchOK = si->forEachMtlsSetup(ains, inLen, outs[ct], nullptr, 0, nullptr, &mtls); 226 si->forEachKernelSetup(slot, &mtls); 227 si->preLaunch(slot, ains, inLen, outs[ct], mtls.fep.usr, 228 mtls.fep.usrLen, nullptr); 231 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); 262 si->forEachKernelSetup(kernels[ct]->mSlot, &mtls); 263 fnPtrs.push_back((void *)mtls.kernel); 264 usrPtrs.push_back(mtls.fep.usr); 265 sigs.push_back(mtls [all...] |
H A D | rsCpuIntrinsicBLAS.cpp | 87 static void setupGEMM(MTLaunchStructForEachBlas *mtls, const Allocation **ain, RsBlasCall* call, argument 94 memset(mtls, 0, sizeof(MTLaunchStructForEachBlas)); 95 mtls->rs = ctx; 96 mtls->sc = call; 97 mtls->dimPtr = &mtls->fep.dim; 98 mtls->fep.dim.x = nn; 99 mtls->fep.dim.y = mm; 100 mtls->fep.dim.z = kk; 102 memcpy(mtls 144 walk_tiled_gemm(Func blasFunc, T_param alpha, T_param beta, int vecSize, RsBlasCall* call, const MTLaunchStructForEachBlas *mtls) argument 193 const MTLaunchStructForEachBlas *mtls = (const MTLaunchStructForEachBlas *)usr; local 204 const MTLaunchStructForEachBlas *mtls = (const MTLaunchStructForEachBlas *)usr; local 215 const MTLaunchStructForEachBlas *mtls = (const MTLaunchStructForEachBlas *)usr; local 226 const MTLaunchStructForEachBlas *mtls = (const MTLaunchStructForEachBlas *)usr; local 259 MTLaunchStructForEachBlas mtls; local [all...] |
H A D | rsCpuScript.h | 90 const RsScriptCall *sc, MTLaunchStructForEach *mtls); 92 virtual void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach *mtls); 96 const RsScriptCall *sc, MTLaunchStructReduce *mtls); 98 virtual void reduceKernelSetup(uint32_t slot, MTLaunchStructReduce *mtls); 138 bool setUpMtlsDimensions(MTLaunchStructCommon *mtls,
|
H A D | rsCpuCore.h | 168 const RsScriptCall *sc, MTLaunchStructForEach *mtls); 172 MTLaunchStructReduce *mtls); 264 MTLaunchStructReduce *mtls); 266 MTLaunchStructReduce *mtls);
|
H A D | rsCpuScriptGroup2.cpp | 172 MTLaunchStructForEach mtls; local 173 si->forEachKernelSetup(funcID->mSlot, &mtls); 174 cc = new CPUClosure(closure, si, (ExpandFuncTy)mtls.kernel); 646 MTLaunchStructForEach mtls; local 654 nullptr, 0, nullptr, &mtls); 656 mtls.script = nullptr; 657 mtls.fep.usr = nullptr; 658 mtls.kernel = (ForEachFunc_t)mFunc; 664 nullptr, &mtls); 681 MTLaunchStructForEach mtls; local [all...] |
H A D | rsCpuIntrinsic.h | 57 void forEachKernelSetup(uint32_t slot, MTLaunchStructForEach * mtls) override;
|