MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / SetSafeFrontier

Method SetSafeFrontier

tensorflow/core/common_runtime/bfc_allocator.cc:685–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683}
684
685void BFCAllocator::SetSafeFrontier(uint64 count) {
686 uint64 current = safe_frontier_.load(std::memory_order_relaxed);
687 while (count > current) {
688 if (safe_frontier_.compare_exchange_strong(current, count)) {
689 retry_helper_.NotifyDealloc();
690 return;
691 } else {
692 current = safe_frontier_.load(std::memory_order_relaxed);
693 }
694 }
695}
696
697bool BFCAllocator::MergeTimestampedChunks(size_t required_bytes) {
698 VLOG(1) << "MergeTimestampedChunks queue_len=" << timestamped_chunks_.size()

Callers 1

gpu_device.ccFile · 0.45

Calls 2

NotifyDeallocMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected