Lines Matching defs:size
76 fatal_if(!chunk.size(), "cannot read from an LDS chunk of size 0");
77 fatal_if(index >= chunk.size(), "out-of-bounds access to an LDS chunk");
89 fatal_if(!chunk.size(), "cannot write to an LDS chunk of size 0");
90 fatal_if(index >= chunk.size(), "out-of-bounds access to an LDS chunk");
96 * get the size of this chunk
99 size() const
101 return chunk.size();
229 // TODO need to make this have a maximum size to create flow control
359 const uint32_t size)
368 fatal_if(bytesAllocated + size > maximumSize,
371 bytesAllocated += size;
373 chunkMap[dispatchId].emplace(wgId, LdsChunk(size));
425 * get the allocated size for this workgroup
430 return chunkMap[x_wgId].size();
478 fatal_if(bytesAllocated < chunkMap[x_dispatchId][x_wgId].size(),
481 bytesAllocated -= chunkMap[x_dispatchId][x_wgId].size();
496 // the size of the LDS, the most bytes available