Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/core/execution_context/in_place_exec_ctxt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,19 @@ void InPlaceExecutionContext::RemoveAgent(const AgentUid& uid) {

void InPlaceExecutionContext::AddAgentsToRm(
const std::vector<ExecutionContext*>& all_exec_ctxts) {
// Skip entirely when no execution context has pending agents
bool any_new = false;
for (int i = 0; i < tinfo_->GetMaxThreads(); ++i) {
auto* ctxt = bdm_static_cast<InPlaceExecutionContext*>(all_exec_ctxts[i]);
if (!ctxt->new_agents_.empty()) {
any_new = true;
break;
}
}
if (!any_new) {
return;
}

// group execution contexts by numa domain
std::vector<uint64_t> new_agent_per_numa(tinfo_->GetNumaNodes());
std::vector<uint64_t> thread_offsets(tinfo_->GetMaxThreads());
Expand Down
Loading