This is only the default estimate of the bytes needed by the kernel to perform the operation based on the input. Each kernel should implement its own version of this, if its possible to obtain a better estimate
| 140 | // This is only the default estimate of the bytes needed by the kernel to perform the operation based on the input. |
| 141 | // Each kernel should implement its own version of this, if its possible to obtain a better estimate |
| 142 | std::size_t kernel::estimate_operating_bytes(const std::vector<std::unique_ptr<ral::cache::CacheData > > & inputs){ |
| 143 | std::size_t bytes_esimate = 0; |
| 144 | for (auto & input : inputs) { |
| 145 | bytes_esimate += input->sizeInBytes(); |
| 146 | } |
| 147 | return bytes_esimate; |
| 148 | } |
| 149 | |
| 150 | } // end namespace cache |
| 151 | } // end namespace ral |
no test coverage detected