Home | History | Annotate | Download | only in cpu_ref

Lines Matching refs:Batch

92 Batch::Batch(CpuScriptGroup2Impl* group, const char* name) :
97 Batch::~Batch() {
104 bool Batch::conflict(CPUClosure* cpuClosure) const {
112 // An invoke should be in a batch by itself, so it conflicts with any other
165 Batch* batch = new Batch(this, "Batch0");
180 if (batch->conflict(cc)) {
181 mBatches.push_back(batch);
183 ss << "Batch" << ++i;
184 batch = new Batch(this, ss.str().c_str());
187 batch->mClosures.push_back(cc);
190 rsAssert(!batch->mClosures.empty());
191 mBatches.push_back(batch);
196 for (Batch* batch : mBatches) {
197 batch->resolveFuncPtr(mScriptObj);
204 void Batch::resolveFuncPtr(void* sharedObj) {
214 for (Batch* batch : mBatches) {
215 delete batch;
279 for (const string& batch : kernelBatches) {
281 args->push_back(batch.c_str());
283 for (const string& batch : invokeBatches) {
285 args->push_back(batch.c_str());
365 for (const auto& batch : mBatches) {
366 rsAssert(batch->size() > 0);
369 ss << batch->mName << ":";
371 if (!batch->mClosures.front()->mClosure->mIsKernel) {
372 rsAssert(batch->size() == 1);
373 generateSourceSlot(mCpuRefImpl, *batch->mClosures.front()->mClosure, inputs, ss);
376 for (const auto& cpuClosure : batch->mClosures) {
514 for (auto batch : mBatches) {
515 batch->setGlobalsForBatch();
516 batch->run();
520 void Batch::setGlobalsForBatch() {
564 void Batch::run() {
568 // This batch contains a single closure for an invoke function