Release releases all device memory it allocated. It **should only called** when any errors happens while the query is processed.
()
| 253 | // Release releases all device memory it allocated. It **should only called** when any errors happens while the query is |
| 254 | // processed. |
| 255 | func (qc *AQLQueryContext) Release() { |
| 256 | // release device memory for processing current batch. |
| 257 | qc.OOPK.currentBatch.cleanupBeforeAggregation() |
| 258 | qc.OOPK.currentBatch.swapResultBufferForNextBatch() |
| 259 | qc.cleanUpDeviceStatus() |
| 260 | qc.ReleaseHostResultsBuffers() |
| 261 | } |
| 262 | |
| 263 | // CleanUpDevice cleans up the device status including |
| 264 | // 1. clean up the device buffer for storing results. |
no test coverage detected