MCPcopy Create free account
hub / github.com/apache/singa / FreeLoop

Method FreeLoop

src/core/scheduler/scheduler.cc:690–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690void Graph::FreeLoop() {
691 int id = 0;
692 for (;;) {
693 free_queue_.Pop(id);
694 if (id == -1) {
695 break;
696 } else {
697 for (auto it : free_blocks_[id]) {
698 it->free_data();
699 }
700 }
701 }
702}
703
704/*
705void CUDART_CB Graph::Callback(cudaStream_t stream, cudaError_t status,

Callers

nothing calls this directly

Calls 2

free_dataMethod · 0.80
PopMethod · 0.45

Tested by

no test coverage detected