Lines Matching refs:dispatchId
290 increaseRefCounter(const uint32_t dispatchId, const uint32_t wgId)
292 int refCount = getRefCounter(dispatchId, wgId);
295 return ++refCounter[dispatchId][wgId];
303 decreaseRefCounter(const uint32_t dispatchId, const uint32_t wgId)
305 int refCount = getRefCounter(dispatchId, wgId);
311 refCounter[dispatchId][wgId]--;
313 if (refCounter[dispatchId][wgId] == 0) {
314 releaseSpace(dispatchId, wgId);
317 return refCounter[dispatchId][wgId];
325 getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const
327 auto dispatchIter = chunkMap.find(dispatchId);
329 "could not locate this dispatch id [%d]", dispatchId);
334 " did[%d] wgid[%d]", dispatchId, wgId);
336 auto refCountIter = refCounter.find(dispatchId);
338 fatal("could not locate this dispatch id [%d]", dispatchId);
343 " did[%d] wgid[%d]", dispatchId, wgId);
345 return refCounter.at(dispatchId).at(wgId);
358 reserveSpace(const uint32_t dispatchId, const uint32_t wgId,
361 if (chunkMap.find(dispatchId) != chunkMap.end()) {
363 chunkMap[dispatchId].find(wgId) != chunkMap[dispatchId].end(),
365 "did[%d] wgid[%d]", dispatchId, wgId);
373 chunkMap[dispatchId].emplace(wgId, LdsChunk(size));
375 refCounter[dispatchId][wgId] = 0;
377 return &chunkMap[dispatchId][wgId];