Skip to content

Commit

Permalink
phy: fix PUSCH benchmark thread config
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepuschmann committed Jan 7, 2025
1 parent 9d5dd74 commit a7d349a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class pusch_processor_result_notifier_adaptor : public pusch_processor_result_no
void wait_for_completion()
{
while (!completed.load()) {
std::this_thread::sleep_for(std::chrono::microseconds(10));
std::this_thread::sleep_for(std::chrono::microseconds(1));
}
}

Expand Down Expand Up @@ -126,7 +126,7 @@ static dmrs_type dmrs = dmrs_typ
static unsigned nof_cdm_groups_without_data = 2;
static bounded_bitset<MAX_NSYMB_PER_SLOT> dmrs_symbol_mask =
{false, false, true, false, false, false, false, false, false, false, false, false, false, false};
static unsigned nof_pusch_decoder_threads = 8;
static unsigned nof_pusch_decoder_threads = 0;
static std::unique_ptr<task_worker_pool<concurrent_queue_policy::locking_mpmc>> worker_pool = nullptr;
static std::unique_ptr<task_worker_pool_executor<concurrent_queue_policy::locking_mpmc>> executor = nullptr;

Expand Down Expand Up @@ -688,7 +688,7 @@ static void thread_process(pusch_processor& proc,
// Wait for pending to non-negative.
while (pending_count.load() <= 0) {
// Sleep.
std::this_thread::sleep_for(std::chrono::microseconds(10));
std::this_thread::sleep_for(std::chrono::microseconds(1));

// Quit if signaled.
if (thread_quit) {
Expand Down Expand Up @@ -843,7 +843,7 @@ int main(int argc, char** argv)

// Wait for finish thread init.
while (pending_count.load() != -static_cast<int>(nof_threads)) {
std::this_thread::sleep_for(std::chrono::microseconds(10));
std::this_thread::sleep_for(std::chrono::microseconds(1));
}

// Calculate the peak throughput, considering that the number of bits is for a slot.
Expand All @@ -869,7 +869,7 @@ int main(int argc, char** argv)

// Wait for finish.
while (finish_count.load() != (nof_threads * batch_size_per_thread)) {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
});

Expand Down

0 comments on commit a7d349a

Please sign in to comment.